Skip to content

Conversation

@BryanValverdeU
Copy link
Contributor

@BryanValverdeU BryanValverdeU commented Sep 9, 2025

#Issue description
Word adds paddings and margins to the Divs that they use to represent lists, the issue is that when we transform the Div to a List, we have to remove those paddins in some scenarios.

Previously, we removed the paddings if the margin of the list was not equal to 0in, but looks like Word also can add other type of units, like 0cm. So, to fix the issue, if parsing the margin to int and the value is 0 we should always remove the padding.

Before
image

After
image

Additionally, remove align from tables from Word as it seems that they cause a layout issue, causing Paragraphs after the table to be rendered next to the table.

Before
image

After
image

#3088 #3139

@BryanValverdeU BryanValverdeU changed the title Fix #3088 Fix #3088 & #3139: Remove unneeded paddings from Word Desktop Sep 9, 2025
@BryanValverdeU BryanValverdeU merged commit dfc06e6 into master Sep 11, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

4 participants