Skip to content

nested lists: unordered list is not visible in the document #197

@blshkv

Description

@blshkv

Hello,

I have the following valid HTML code with ordered and unordered nested lists:

<ol>
	<li>ordered1
	<ul>
		<li>unordered2</li>
	</ul>
	</li>
</ol>

after running ```Sablon.content(:html,) I see the following:

Sablon::Content::HTML html_content="<ol>\r\n\t<li>ordered1\r\n\t<ul>\r\n\t\t<li>unordered1</li>\r\n\t</ul>\r\n\t</li>\r\n</ol>\r\n"

However, in the docx document, there is only first list visable:
1. ordered1

the docx xml looks like this:

<w:shd w:val="clear" w:color="auto" w:fill="auto"/><w:tcMar><w:top w:w="28" w:type="dxa"/></w:tcMar></w:tcPr><w:p><w:pPr>
							<w:pStyle w:val="ListNumber"/><w:numPr><w:ilvl w:val="0"/><w:numId w:val="26"/></w:numPr></w:pPr><w:r><w:t xml:space="preserve">ordered1
	</w:t></w:r><w:p><w:pPr><w:pStyle w:val="ListBullet"/><w:numPr><w:ilvl w:val="0"/><w:numId w:val="27"/></w:numPr></w:pPr><w:r><w:t xml:space="preserve">unordered2</w:t></w:r></w:p><w:r><w:t xml:space="preserve">
	</w:t></w:r></w:p></w:tc></w:tr><w:tr w:rsidR="000979B5" w:rsidTr="00BE54B2"><w:trPr><w:trHeight w:val="283"/><w:jc w:val="center"/></w:trPr><w:tc><w:tcPr><w:tcW w:w="9752" w:type="dxa"/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions