Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
blshkv opened this issue Nov 29, 2024 · 0 comments
Open

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

blshkv opened this issue Nov 29, 2024 · 0 comments

Comments

@blshkv
Copy link

blshkv commented Nov 29, 2024

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"/>
@blshkv blshkv changed the title nested lists: missing unordered list nested lists: unordered list is not visible in the document Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant