xwikisas / xwiki-pro-macros

XWiki rendering macros useful when migrating content from Confluence
GNU Lesser General Public License v2.1
3 stars 12 forks source link

Bulleted list does not work as expected when used in "Expand" macro #323

Closed claudiuion117 closed 4 days ago

claudiuion117 commented 2 months ago

For the tests, I used Pro Macros 1.19.9. on XWiki 15.10.10., 15.10.11, 16.4.2. and 16.6.0. I also tested with Pro Macros 1.20.0. and got the same results.

Steps to reproduce:

{{expand title="Click here to see the "Bulleted List" (not)."}}
The following test is a "Bulleted List"

        * Point number one

        * Point number two

Normal text

        * Point number three

        * Point number four

Normal text
{{/expand}}

Expected results: The Bulleted list inside the macro is shown as a normal Bulleted list when the macro is expanded in both View and Edit mode

Actual results: In View mode, the Bulleted list has no indent and no bullet before the items. The order of the items and the content seems to be the same. However, in Edit mode, the list is shown as expected.

I think it is worth mentioning that using Numbered list instead of Bulleted list works as expected in both View and Edit modes: the lists are shown as a normal Numbered list when the section is expanded.

bullet list view mode: bullet-list-view-mode

bullet list edit mode: bullet-list-edit-mode

bullet vs number list in view mode: bullet-vs-number-lists

number list view mode: number-list-view-mode