donglining commented on code in PR #808:
URL: https://github.com/apache/poi/pull/808#discussion_r2096918626
##########
poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFSDTContent.java:
##########
@@ -123,8 +134,12 @@ public String getText() {
text.append(((XWPFSDT) o).getContent().getText());
addNewLine = true;
} else if (o instanceof XWPFRun) {
- text.append(o);
- addNewLine = false;
+ XWPFRun xRun = (XWPFRun) o;
+ // don't include the text if reviewing is enabled and this is
a deleted run
+ if (xRun.getCTR().getDelTextArray().length == 0) {
Review Comment:
I will make the corresponding changes here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]