transpect / docx2hub

Converts Microsoft docx to flat hub XML
BSD 2-Clause "Simplified" License
27 stars 15 forks source link

51 times nested INCLUDEPICTURE causes docx2hub:nest-field-functions may be looping #28

Closed gimsieke closed 1 year ago

gimsieke commented 1 year ago

In atached docx file, there is a field code {INCLUDEPICTURE "008.tif"}. In document.xml, <w:instrText>INCLUDEPICTURE "B08.tif"</w:instrText> is repeated 51 times, nested in properly balanced begin/end fldChars. This caused join-runs.xsl to raise said looping error.

9_2962e_CDV_en_2.docx

gimsieke commented 1 year ago

I increased the threshold to 100. No idea how to properly identify this kind of bogus field code nesting.