fieldset comment fixes

This commit is contained in:
CITE\amentis 2024-10-10 12:23:42 +03:00
parent 74db7e8754
commit 7be1816a46
1 changed files with 2 additions and 0 deletions

View File

@ -436,6 +436,8 @@ public class WordBuilderImpl implements WordBuilder {
} }
if (propertyDefinitionFieldSetModel.getComment() != null && !propertyDefinitionFieldSetModel.getComment().isEmpty()) { if (propertyDefinitionFieldSetModel.getComment() != null && !propertyDefinitionFieldSetModel.getComment().isEmpty()) {
addParagraphContent("<i>Comment:</i>\n" + propertyDefinitionFieldSetModel.getComment(), mainDocumentPart, ParagraphStyle.HTML, numId, indent); addParagraphContent("<i>Comment:</i>\n" + propertyDefinitionFieldSetModel.getComment(), mainDocumentPart, ParagraphStyle.HTML, numId, indent);
hasValue = true;
returnedValue = true;
} }
if (!hasValue && paragraphPos > -1) { if (!hasValue && paragraphPos > -1) {
mainDocumentPart.removeBodyElement(paragraphPos); mainDocumentPart.removeBodyElement(paragraphPos);