Skip to content

Two different ordered lists are merged in the conversion result #32

@DunaMariusCosmin

Description

@DunaMariusCosmin

I have the following Word document: 2Lists.docx:
image
When I convert it to HTML, the lists are merged:
<ol> <li>Li1</li> <li>Li2</li> <li>NewLi1</li> <li>NewLi2</li> </ol>

This is the Word internal structure:
listsStructure
I think the converter should take into account the id of the numbering. Maybe the "org.zwobble.mammoth.internal.styles.ParagraphMatcher.matchesNumbering(Paragraph)" method should also compare these ids.

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