mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-29 01:41:20 +08:00
3b9a47d02e
Table rows in Docx files can use `w:gridBefore` property to specify a number of extra empty table cells to be inserted at the beginning of a row. Without this, table columns in tables using the element will become misaligned. https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.gridbefore?view=openxml-3.0.1 In the worst case, this can lead to cells at the end of some rows to be dropped by the parser. The test file was produced as follows based on the “3GPP TS 24.282 V19.5.0 (2025-12)” document obtained from <https://www.3gpp.org/ftp/Specs/archive/24_series/24.282/24282-j50.zip> where I encountered the issue: 1. Extracted the `document.xml`. 2. Formatted it with `xmllint --format`. 3. Found the raw XML for “Table 15.2.13-2: Payload content type”. 4. Removed `w:rsid*` and `w14:*` attributes, and `w:pStyle` elements. 5. Replaced the context of `test/docx/raw-blocks.native`. 6. Used pandoc to generate the docx.
13 KiB
13 KiB