lpaulsen93 / dokuwiki-plugin-odt

Exports a page to the Open Document format used by OpenOffice.org and other word processors
http://www.dokuwiki.org/plugin:odt
13 stars 26 forks source link

Interrupted ordered/unordered (nested) lists with Wrap plugin is broken #298

Open eduardomozart opened 1 year ago

eduardomozart commented 1 year ago

Hello, When using Wrap plugin in ordered/unordered lists as seem in file playground.txt in attachment (with PR #296 applied), it renders as expected on DokuWiki page but there's issues when exporting to ODT.

When changing the playground.odt file extension to playground.zip and checking content.xml file contents, it seems that nested lists are being created twice, so the item "4" of the ordered list wasn't being rendered on the ODT document (it's listed on content.xml file but isn't shown). I had to manually edit the content.xml file and remove the extra nested list (as can be seen in image below) to the item "4" of the ordered list be shown on ODT document.

image

This problem is also reproducible on older ODT plugin versions, like 2019-07-27, so it doesn't seem to be related to any recent ODT plugin changes.

playground.txt