pjfanning commented on code in PR #808:
URL: https://github.com/apache/poi/pull/808#discussion_r2095245734


##########
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:
   use isEmpty() instead of length == 0



-- 
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: dev-unsubscr...@poi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to