You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pandoc types has support for row head, see https://pandoc.org/lua-filters.html#type-tablebody, and Microsoft Word allows users to apply "special formatting for the first column", see the "Table Style Options" in the screenshot.
DOCX reader could treat the selection of "special formatting for the first column" as "the first column is a header".
pandoc 3.1.11.1
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /home/raniere/.local/share/pandoc
Copyright (C) 2006-2023 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
The text was updated successfully, but these errors were encountered:
This reverts commit cbe67b9.
Word sets `w:firstColumn="1"` by default for tables. You have to find
the Table Design tab and explicitly uncheck "First Column" to make this
go away. In most cases, I don't think writers intend to designate
the first column as a row head, so this commit is going to produce
unexpected results. In addition, because of the table normalization
done by pandoc-type's `tableWith`, any table containing a colspanned
cell in the left-hand column will get broken if the first column is
designated a row head. For these reasons it seems best to revert this
change, which was made in response to #9495.
Closes#10627.
Pandoc types has support for row head, see https://pandoc.org/lua-filters.html#type-tablebody, and Microsoft Word allows users to apply "special formatting for the first column", see the "Table Style Options" in the screenshot.
DOCX reader could treat the selection of "special formatting for the first column" as "the first column is a header".
Minimal Working Examples
table-2x2-single-header.docx
table-2x2-two-headers.docx
XML structure
table-2x2-single-header.docx
hasand
table-2x2-two-headers.docx
hasDOCX reader need to check the value of
w:firstColumn
in<w:tblLook />
.Current Reading
pandoc --from docx --to native table-2x2-two-headers.docx
producesDesired Reading
pandoc --from docx --to native table-2x2-two-headers.docx
should produceThe value of
RowHeadColumns
is now 1.Environment
pandoc --version
returnsThe text was updated successfully, but these errors were encountered: