fix(82946): 当一个条文内,有多个条款,并且存在表格时,对比时展示有问题
This commit is contained in:
@@ -2285,11 +2285,17 @@ public class DiffUtils {
|
|||||||
for (String key:replaceMap2.keySet()) {
|
for (String key:replaceMap2.keySet()) {
|
||||||
RResultStr = RResultStr.replace(key,replaceMap2.get(key));
|
RResultStr = RResultStr.replace(key,replaceMap2.get(key));
|
||||||
}
|
}
|
||||||
|
LResultStr = updataErrorDiff(LResultStr);
|
||||||
|
RResultStr = updataErrorDiff(RResultStr);
|
||||||
result.add(LResultStr);
|
result.add(LResultStr);
|
||||||
result.add(RResultStr);
|
result.add(RResultStr);
|
||||||
return result;
|
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){
|
public static void main(String[] args){
|
||||||
DiffUtils dmp = new DiffUtils();
|
DiffUtils dmp = new DiffUtils();
|
||||||
|
|||||||
Reference in New Issue
Block a user