|
@@ -590,19 +590,26 @@ public final class DocxProcessUtil {
|
|
} else if (quesUnit == QuesUnit.QUES_ANSWER) {
|
|
} else if (quesUnit == QuesUnit.QUES_ANSWER) {
|
|
|
|
|
|
// 过滤答案标题
|
|
// 过滤答案标题
|
|
- if(tmpText.contains(":") || tmpText.contains(":")){
|
|
|
|
- if(tmpText.startsWith(":") || tmpText.startsWith(":")){
|
|
|
|
- tmpText = tmpText.replaceFirst("[:|:]","");
|
|
|
|
- text.setValue(tmpText);
|
|
|
|
- }else{
|
|
|
|
- tmpText = tmpText.replaceFirst("\\[","").replaceFirst("\\]","").replaceFirst("答案","");
|
|
|
|
- text.setValue(tmpText);
|
|
|
|
- }
|
|
|
|
- return p;
|
|
|
|
- } else {
|
|
|
|
- tmpText = tmpText.replaceFirst("\\[","").replaceFirst("\\]","").replaceFirst("答案","");
|
|
|
|
|
|
+ if(index <= 4){
|
|
|
|
+ tmpText = tmpText.replaceFirst("\\[","").replaceFirst("\\]","")
|
|
|
|
+ .replaceFirst("答案","").replaceFirst("[:|:]","");
|
|
text.setValue(tmpText);
|
|
text.setValue(tmpText);
|
|
|
|
+ }else{
|
|
|
|
+ return p;
|
|
}
|
|
}
|
|
|
|
+// if(tmpText.contains(":") || tmpText.contains(":")){
|
|
|
|
+// if(tmpText.startsWith(":") || tmpText.startsWith(":")){
|
|
|
|
+// tmpText = tmpText.replaceFirst("[:|:]","");
|
|
|
|
+// text.setValue(tmpText);
|
|
|
|
+// }else{
|
|
|
|
+// tmpText = tmpText.replaceFirst("\\[","").replaceFirst("\\]","").replaceFirst("答案","").replaceFirst("[:|:]","");
|
|
|
|
+// text.setValue(tmpText);
|
|
|
|
+// }
|
|
|
|
+// return p;
|
|
|
|
+// } else {
|
|
|
|
+// tmpText = tmpText.replaceFirst("\\[","").replaceFirst("\\]","").replaceFirst("答案","");
|
|
|
|
+// text.setValue(tmpText);
|
|
|
|
+// }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|