mwilliamson / python-mammoth

Convert Word documents (.docx files) to HTML
BSD 2-Clause "Simplified" License
785 stars 121 forks source link

Update numbering_xml.py #134

Closed randomradio closed 1 year ago

randomradio commented 1 year ago

when doing level_index = element.attributes.get("w:ilvl") unnumbered list will not have "w:ilvl" key, and will throw exceptions here. Changed it to attributes.get("w:ilvl") to avoid this exception.

In general, pull requests are not currently accepted.

Please instead submit an issue if you find a bug or would like to request a feature.

randomradio commented 1 year ago

@mwilliamson please review this change.

mwilliamson commented 1 year ago

I'm not currently accepting pull requests. Could you open an issue instead, and provide a minimal example document?