Mijeong Park Mijeong Park 2018-01-31
refactoring: Modify html tag for new line
@c974509a6e8bf0e1fe24695ba77b7793a4b1c5bd
app/utils/DiffUtil.java
--- app/utils/DiffUtil.java
+++ app/utils/DiffUtil.java
@@ -60,7 +60,7 @@
             }
         }
 
-        return sb.toString().replaceAll("\n", "&nbsp<br/>\n");
+        return sb.toString().replaceAll("\n", "<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;'>...&nbsp<br/>\n"
-            + "......&nbsp<br/>\n"
-            + "......&nbsp<br/>\n"
+    String DIFF_EQUAL_PREFIX = "<span style='color: #bdbdbd;font-size: 16px;font-family: serif;'>...<br/>\n"
+            + "......<br/>\n"
+            + "......<br/>\n"
             + "...</span>";
 
     String DIFF_NEW_LINE = "\n";
Add a comment
List