fix: 拆分上下角标问题
This commit is contained in:
+1
-1
@@ -385,7 +385,7 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
|
|||||||
// 企标权限校验
|
// 企标权限校验
|
||||||
enterpriseCheck(sarFileSplitInfoEO);
|
enterpriseCheck(sarFileSplitInfoEO);
|
||||||
// 唯一校验
|
// 唯一校验
|
||||||
// uniqueCheck(sarFileSplitInfoEO);
|
uniqueCheck(sarFileSplitInfoEO);
|
||||||
// 保存文本拆分数据
|
// 保存文本拆分数据
|
||||||
saveDocumentSplitInfo(sarFileSplitInfoEO);
|
saveDocumentSplitInfo(sarFileSplitInfoEO);
|
||||||
//拆分
|
//拆分
|
||||||
|
|||||||
+3
-4
@@ -251,10 +251,12 @@ public class FileSpiltService {
|
|||||||
for (XWPFRun xwrun : p.getRuns()) {
|
for (XWPFRun xwrun : p.getRuns()) {
|
||||||
VerticalAlign subscript = xwrun.getSubscript();
|
VerticalAlign subscript = xwrun.getSubscript();
|
||||||
String smalltext = xwrun.getText(0);
|
String smalltext = xwrun.getText(0);
|
||||||
|
if (StringUtils.isNotBlank(smalltext)){
|
||||||
|
smalltext = smalltext.replace("<", "<").replace(">", ">");
|
||||||
|
}
|
||||||
if (smalltext==null){
|
if (smalltext==null){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
smalltext = smalltext.replaceAll("<", "<").replaceAll(">", ">");
|
|
||||||
switch (subscript) {
|
switch (subscript) {
|
||||||
case BASELINE:
|
case BASELINE:
|
||||||
stringBuilder.append(smalltext);
|
stringBuilder.append(smalltext);
|
||||||
@@ -1041,9 +1043,6 @@ public class FileSpiltService {
|
|||||||
|
|
||||||
// 像每个条款中依次插入每一段的内容
|
// 像每个条款中依次插入每一段的内容
|
||||||
public static void addItermsConditionsText(SarFileSplitItemsEO message, List<SarFileSplitItemsValEO> itemsValList, String p, ParagraphAlignment alignment) {
|
public static void addItermsConditionsText(SarFileSplitItemsEO message, List<SarFileSplitItemsValEO> itemsValList, String p, ParagraphAlignment alignment) {
|
||||||
if (StringUtils.isNotBlank(p)){
|
|
||||||
//p = p.replace("<", "<").replace(">", ">");
|
|
||||||
}
|
|
||||||
message.getItemsCondi().add(p);
|
message.getItemsCondi().add(p);
|
||||||
if (ParagraphAlignment.CENTER.equals(alignment)){
|
if (ParagraphAlignment.CENTER.equals(alignment)){
|
||||||
message.setItemContent(message.getItemContent() + "<p style=\"text-align: center;\">" + p + "</p>");
|
message.setItemContent(message.getItemContent() + "<p style=\"text-align: center;\">" + p + "</p>");
|
||||||
|
|||||||
Reference in New Issue
Block a user