fix(82946): 当一个条文内,有多个条款,并且存在表格时,对比时展示有问题

This commit is contained in:
yjz
2024-03-25 14:26:15 +08:00
parent dbbbfc6670
commit 6150e1205b
@@ -2285,11 +2285,17 @@ public class DiffUtils {
for (String key:replaceMap2.keySet()) {
RResultStr = RResultStr.replace(key,replaceMap2.get(key));
}
LResultStr = updataErrorDiff(LResultStr);
RResultStr = updataErrorDiff(RResultStr);
result.add(LResultStr);
result.add(RResultStr);
return result;
}
private String updataErrorDiff(String str) {
return str.replace("<<span class=\"delClass\">", "<span class=\"delClass\"><")
.replace("<</span>", "</span><");
}
public static void main(String[] args){
DiffUtils dmp = new DiffUtils();