Browse Source

北仑手术记录全页面显示,删除文本中\n

wangsy 4 years ago
parent
commit
bc6df7c668

+ 2 - 2
trans/src/main/java/com/lantone/qc/trans/comsis/CommonAnalysisUtil.java

@@ -222,7 +222,7 @@ public class CommonAnalysisUtil {
             if (value.startsWith(":") || value.startsWith(":")) {
                 value = value.replaceFirst("[::]", "");
             }
-            structureMap.put(beforeTitle, value);
+            structureMap.put(beforeTitle, value.replace("\n", ""));
             return;
         }
         if (line.contains(title)) {
@@ -233,7 +233,7 @@ public class CommonAnalysisUtil {
                 if (value.startsWith(":") || value.startsWith(":")) {
                     value = value.replaceFirst("[::]", "");
                 }
-                structureMap.put(beforeTitle.replace(" ", ""), value);
+                structureMap.put(beforeTitle.replace(" ", ""), value.trim().replace("\n", ""));
             }
             line = line.substring(line.indexOf(newTitle) + newTitle.length());
             depth++;