pjfanning commented on code in PR #640: URL: https://github.com/apache/poi/pull/640#discussion_r1616341166
########## poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFDocument.java: ########## @@ -912,6 +920,53 @@ private void insertElementIntoCell(XWPFTableCell tableCell, IBodyElement iBodyEl } } + private void insertIntoTables(IBodyElement iBodyElement, Deque<XmlObject> path, CTTbl ctTbl, List<XWPFTable> tables) { + for (XWPFTable xwpfTable : tables) { + if (ctTbl == xwpfTable.getCTTbl()) { + insertElementIntoTable(xwpfTable, iBodyElement, path); + } Review Comment: shouldn't you break when you match in the `if`? -- 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