Fix #3088 & #3139: Remove unneeded paddings from Word Desktop #3147
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#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, like0cm. So, to fix the issue, if parsing the margin to int and the value is 0 we should always remove the padding.Before

After

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

After

#3088 #3139