hostedbygnome commented on code in PR #971:
URL: https://github.com/apache/poi/pull/971#discussion_r3040498324


##########
poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java:
##########
@@ -138,10 +138,22 @@ private void buildRunsInOrderFromXml(XmlObject object) {
                 if (o instanceof CTSdtBlock) {
                     XWPFSDT cc = new XWPFSDT((CTSdtBlock) o, part);
                     iruns.add(cc);
+                    CTSdtContentBlock content = 
((CTSdtBlock)o).getSdtContent();
+                    if (content != null) {
+                        for (CTP ctp : content.getPList()) {
+                            processCTRs(ctp.getRList());
+                        }
+                    }
                 }
                 if (o instanceof CTSdtRun) {
-                    XWPFSDT cc = new XWPFSDT((CTSdtRun) o, part);
-                    iruns.add(cc);
+                        XWPFSDT cc = new XWPFSDT((CTSdtRun)o, part);

Review Comment:
   done



-- 
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]

Reply via email to