You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to revisit some code I wrote two or three years ago, so that was an adventure. I refactored HTML list processing to make it much more straightforward. I tested it with many indentation changes, formatting, and nested elements. Everything looks good in the output, so the change will be in the next release.
Word Rendering
WYSIWYG HTML
<p>Single list item:</p><ul><li>Level 1</li></ul><p>Multiple nested list items:</p><ul><li>Level 1</li><li>Level 2
<ul><li>Level 2, a</li><li>Level 2, b
<ul><li>Level 2, i</li><li>Level 2, ii
<ul><li>Level 2, a</li></ul></li><li>Level 2, iii</li></ul></li><li>Level 2, c</li></ul></li><li>Level 3
<ul><li>Level 3, a</li></ul></li><li>Level 4</li></ul><p>Multiple nested list items with tested tags:</p><ul><li><spanclass="bold">Level <spanclass="italic">1</span></span> (Bold + Bolt Italic num)<spanclass="bold"><spanclass="italic"><br/></span></span></li><li><spanclass="bold"><spanclass="italic">Level</span></span><spanclass="italic">2</span> (Italic Bold + italic num)
<ul><li>Level 2, <spanclass="underline">a (Underlined after comma)<br/></span></li><li>Level 2, b
<ul><li>Level 2, i – hyperlink: <spanclass="italic">Italic</span>, <spanclass="italic">Italic</span>, <ahref="https://github.com/GhostManager/Ghostwriter">https://github.com/GhostManager/Ghostwriter</a></li><li>Level 2, ii
<ul><li>Level 2, a – hyperlink: <spanclass="italic bold">Bold Italic</span>, <spanclass="underline bold">Bold Underlined</span>, <spanclass="underline"><ahref="https://www.ghostwriter.wiki/getting-started/quickstart">https://www.ghostwriter.wiki/getting-started/quickstart</a></span></li></ul></li><li>Level 2, iii – New font: <spanstyle="font-family: terminal, monaco;">Terminal</span></li></ul></li><li>Level 2, c</li></ul></li><li>Level 3
<ul><li>Level 3, a</li></ul></li><li>Level 4</li></ul>
On an issue having a list with multiple sublevel is not correctly reported into the word documents.
For example on the HTML editor I got:
pluto
The docx report will get this structure:
pluto
The text was updated successfully, but these errors were encountered: