Просмотр исходного кода

导出试卷文件时,将#替换成下划线

chenken 8 лет назад
Родитель
Сommit
d10234c539

+ 1 - 1
cqb-paper/src/main/java/com/qmth/cqb/paper/service/export/ExportPaperAbstractService.java

@@ -379,7 +379,7 @@ public abstract class ExportPaperAbstractService {
                                 tObj = ((JAXBElement<?>) tObj).getValue();
                             if(tObj.getClass().equals(Text.class)){
                                 Text text = (Text)tObj;
-                                String str = text.getValue().trim();
+                                String str = text.getValue();
                                 str = str.replaceAll("###","______");
                                 text.setValue(str);
                                 if(str.matches("##\\d{1,}##")){