|
@@ -150,7 +150,7 @@ public class CommonAnalysisUtil {
|
|
*/
|
|
*/
|
|
value = line.replace("\n", "");
|
|
value = line.replace("\n", "");
|
|
if (StringUtil.isBlank(structureMap.get(beforeTitle))) {
|
|
if (StringUtil.isBlank(structureMap.get(beforeTitle))) {
|
|
- structureMap.put(beforeTitle, value.trim());
|
|
|
|
|
|
+ structureMap.put(beforeTitle, StringUtil.trim(value));
|
|
}
|
|
}
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -163,7 +163,7 @@ public class CommonAnalysisUtil {
|
|
if (depth > 0) {
|
|
if (depth > 0) {
|
|
value = line.substring(0, line.indexOf(newTitle));
|
|
value = line.substring(0, line.indexOf(newTitle));
|
|
if (StringUtil.isBlank(structureMap.get(beforeTitle))) {
|
|
if (StringUtil.isBlank(structureMap.get(beforeTitle))) {
|
|
- structureMap.put(beforeTitle, value.trim().replace("\n", ""));
|
|
|
|
|
|
+ structureMap.put(beforeTitle, StringUtil.trim(value).replace("\n", ""));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
line = line.substring(line.indexOf(newTitle) + newTitle.length());
|
|
line = line.substring(line.indexOf(newTitle) + newTitle.length());
|
|
@@ -227,7 +227,7 @@ public class CommonAnalysisUtil {
|
|
value = value.replaceFirst("[::]", "");
|
|
value = value.replaceFirst("[::]", "");
|
|
}
|
|
}
|
|
if (StringUtil.isBlank(structureMap.get(beforeTitle))) {
|
|
if (StringUtil.isBlank(structureMap.get(beforeTitle))) {
|
|
- structureMap.put(beforeTitle, value.replace("\n", ""));
|
|
|
|
|
|
+ structureMap.put(beforeTitle, StringUtil.trim(value).replace("\n", ""));
|
|
}
|
|
}
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -240,7 +240,7 @@ public class CommonAnalysisUtil {
|
|
value = value.replaceFirst("[::]", "");
|
|
value = value.replaceFirst("[::]", "");
|
|
}
|
|
}
|
|
if (StringUtil.isBlank(structureMap.get(beforeTitle))) {
|
|
if (StringUtil.isBlank(structureMap.get(beforeTitle))) {
|
|
- structureMap.put(beforeTitle, value.trim().replace("\n", ""));
|
|
|
|
|
|
+ structureMap.put(beforeTitle, StringUtil.trim(value).replace("\n", ""));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
line = line.substring(line.indexOf(newTitle) + newTitle.length());
|
|
line = line.substring(line.indexOf(newTitle) + newTitle.length());
|