pjfanning commented on code in PR #971:
URL: https://github.com/apache/poi/pull/971#discussion_r2622483140
##########
poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java:
##########
@@ -138,10 +138,26 @@ 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);
+ if (o instanceof CTSdtRun) {
Review Comment:
please remove this `if` - it repeats the same `if` on the previous line
--
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]