]> source.dussan.org Git - poi.git/commit
Fix Paragraph.searchText
authorDominik Stadler <centic@apache.org>
Sun, 7 Jul 2024 06:40:36 +0000 (06:40 +0000)
committerDominik Stadler <centic@apache.org>
Sun, 7 Jul 2024 06:40:36 +0000 (06:40 +0000)
commit894ef6e1bdbbd700979f8f6fd71aa53863ddedc3
tree8cfca9115e904156a0f042108d149cfb18d078de
parent397cee3a1283893916e2c14c77dbd14566e468df
Fix Paragraph.searchText

The result was wrong for certain combinations of runs and found positions.

The adjusted implementation fixes this.

Also add a number of additional tests to verify results are correct.

Closes #655

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1918986 13f79535-47bb-0310-9956-ffa450edef68
poi-ooxml/src/main/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFParagraph.java