Mijeong Park Mijeong Park 2018-02-14
issue: Fix the bug of missing new line highlight in email noti
@7527fae410f6dc4e0fd096c797cad013d600b676
app/utils/DiffUtil.java
--- app/utils/DiffUtil.java
+++ app/utils/DiffUtil.java
@@ -57,7 +57,7 @@
             }
         }
 
-        return sb.toString().replaceAll("\n", "<br/>\n");
+        return sb.toString().replaceAll("\n", "&nbsp<br/>\n");
     }
 
     public static String getDiffPlainText(String oldValue, String newValue) {
test/utils/DiffUtilTest.java
--- test/utils/DiffUtilTest.java
+++ test/utils/DiffUtilTest.java
@@ -17,9 +17,9 @@
     String DIFF_INSERT_PREFIX = "<span style='background-color: #abdd52;padding: 2px 0;'>";
     String DIFF_INSERT_POSTFIX = "</span>";
 
-    String DIFF_EQUAL_PREFIX = "<span style='color: #bdbdbd;font-size: 16px;font-family: serif;'>...<br/>\n"
-            + "......<br/>\n"
-            + "......<br/>\n"
+    String DIFF_EQUAL_PREFIX = "<span style='color: #bdbdbd;font-size: 16px;font-family: serif;'>...&nbsp<br/>\n"
+            + "......&nbsp<br/>\n"
+            + "......&nbsp<br/>\n"
             + "...</span>";
 
     String DIFF_NEW_LINE = "\n";
Add a comment
List