Page 1 of 1

Nested lists are not converted to nested <ul> or <ol> correc

PostPosted: Thu Jan 19, 2017 5:03 am
by Joobie
Hello all,

I was wondering if anyone has found a workaround for this issue with nested lists. I see there's a bug filed on github here: https://github.com/plutext/docx4j/issues/175

Thanks for any assistance!

Re: Nested lists are not converted to nested <ul> or <ol> co

PostPosted: Thu Jan 19, 2017 9:33 pm
by jason
Can you please attach a problematic minimal input docx?

By the way, fyi, I recently did some work on an alternative approach, for docx to TEI, which interpolates missing list levels; see https://github.com/plutext/Stylesheets/ ... /lists.xsl

http://stackoverflow.com/users/36305/dimitre-novatchev helped a lot with that.

Something similar could be used for docx to HTML.

Re: Nested lists are not converted to nested <ul> or <ol> co

PostPosted: Wed Jan 25, 2017 5:45 am
by Joobie
Thanks Jason. Sorry I did not respond sooner, my email notification did not come through!

I've attached a minimal input docx. There's also a sample doc on the github issue, https://github.com/plutext/docx4j/issues/175 opened by another user: https://github.com/plutext/docx4j/files/109082/NestedList-CrazyNestingThatsFlattened.docx

Thank you for taking a look

Re: Nested lists are not converted to nested <ul> or <ol> co

PostPosted: Wed Feb 08, 2017 7:01 am
by Joobie
Hi wanted to cirlce back - does anyone have any feedback on this bug?

Re: Nested lists are not converted to nested <ul> or <ol> co

PostPosted: Fri Feb 10, 2017 9:15 pm
by jason
Please try http://www.docx4java.org/docx4j/docx4j- ... 170210.jar

It works with your sample document, provided you keep the browser defaults for ol & ul; see https://github.com/plutext/docx4j/blob/ ... .java#L105

Re: Nested lists are not converted to nested <ul> or <ol> co

PostPosted: Sun Feb 12, 2017 6:00 am
by Joobie
Cheers! Thank you Jason. I'll deploy this and post on the github issue if it resolves the bug for me.