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

Enumeration / Lists: Missing indention #1443

Open
buhtz opened this issue Nov 5, 2024 · 2 comments
Open

Enumeration / Lists: Missing indention #1443

buhtz opened this issue Nov 5, 2024 · 2 comments

Comments

@buhtz
Copy link

buhtz commented Nov 5, 2024

image

The first two enumerations in this screenshots are created using code like this, where I use the styles List Bullet and List Number.

document.add_paragraph(
    'first item in unordered list', style='List Bullet'
)
document.add_paragraph(
    'first item in ordered list', style='List Number'
)

But in the result (screenshot) this enumerations do not look the same way as the original MS Word enumeration (the 3rd in the screenshot) does. The indention is missing.

I am assuming that I miss a basics concept here?

@buhtz
Copy link
Author

buhtz commented Nov 5, 2024

To my understanding there is a style List Paragraph beside List Number and List Bullet. But when using List Paragraph the indention is there but the bullet points or numbers are missing.

Somehow I need to add them both?

@ghollf
Copy link

ghollf commented Nov 9, 2024

Word uses a different style that also includes an indention definition ...

<w:style w:type="paragraph" w:styleId="Listenabsatz">
	<w:name w:val="List Paragraph"/>
	<w:basedOn w:val="Standard"/>
	<w:uiPriority w:val="34"/>
	<w:qFormat/>
	<w:rsid w:val="00201BB5"/>
	<w:pPr>
		<w:ind w:left="720"/>
		<w:contextualSpacing/>
	</w:pPr>
</w:style>

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

2 participants