Created attachment 32034 [details] Patch containing three new methods for list formatting Expose a few methods to allow for correct list number formatting as described in [MS-DOC], v20140721, 2.4.6.3 + 2.4.6.4
Any chance you could add a unit test which verifies the newly added methods with a pre-existing document so the code stays working in the future?
What do you mean by "pre-existing document"? A *.doc-file? I believe it is pretty much infeasible to trigger these methods from such a file in isolation. TIKA has a pending feature request which depends on this patch (https://issues.apache.org/jira/browse/TIKA-1315) and includes a proper unit-test. Would you be ok with that?
Best would be a unit-test together with a simple .doc file which triggers the getters and expects the correct values to be returned by POI, e.g. something similar to one of the test-cases in https://svn.apache.org/repos/asf/poi/trunk/src/scratchpad/testcases/org/apache/poi/hwpf/usermodel/TestLists.java
Created attachment 32691 [details] Added a unit test Hi Dominik, How does this look? I added a unit test based on the test doc used in TestLists. If there are no objections, I'll commit. Thank you!
Looks good!
Thank you, Moritz! Fixed in r1676561