Skip to content

DocxKit 0.1.1

Latest

Choose a tag to compare

@mtbalen mtbalen released this 02 Dec 17:43
· 3 commits to main since this release

Fixes found by running DocxKit over Apache POI's test documents.

  • Numbering with format overrides. A list that gives a level its own look (a <w:lvl> inside <w:lvlOverride>) now counts on with the other lists made from the same definition, as Word does: 1, then B and C in the lettered list, then 4. Before, it counted on its own (A, B, then 2). Only <w:startOverride> starts a list again.
  • Safe off the main thread. A part nested more than 512 levels deep is refused with DocxError.unreadable before it's parsed (Foundation's XML tree builds and frees itself by recursion), and tables more than 32 deep are read as their cells' paragraphs without recursion. A fuzzed file nesting tables 5,000 deep used to crash reading in a Task.