Regression in 3.11. The regression caused only the first column to get assigned its alignment; every other column received default alignment. In addition, in 3.11 alignment was taken from the header row if present; this changed behavior from earlier versions, which took it from the first body row. We revert to the earlier behavior, using the header row only if there are no body rows. It's common for the header to have different alignment than the rest. Closes #11969.
63 lines
1.8 KiB
Plaintext
63 lines
1.8 KiB
Plaintext
Pandoc
|
|
Meta { unMeta = fromList [] }
|
|
[ Table
|
|
( "" , [] , [] )
|
|
(Caption Nothing [])
|
|
[ ( AlignDefault , ColWidth 0.16167023554603854 )
|
|
, ( AlignDefault , ColWidth 0.16167023554603854 )
|
|
, ( AlignDefault , ColWidth 0.40920770877944324 )
|
|
]
|
|
(TableHead
|
|
( "" , [] , [] )
|
|
[ Row
|
|
( "" , [] , [] )
|
|
[ Cell
|
|
( "" , [] , [] )
|
|
AlignCenter
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Strong [ Str "col1Header" ] ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignCenter
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Strong [ Str "col2Header" ] ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignCenter
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Strong [ Str "col3Header" ] ] ]
|
|
]
|
|
])
|
|
[ TableBody
|
|
( "" , [] , [] )
|
|
(RowHeadColumns 0)
|
|
[]
|
|
[ Row
|
|
( "" , [] , [] )
|
|
[ Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "col1" , Space , Str "content" ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "Body" , Space , Str "copy" ] ]
|
|
, Cell
|
|
( "" , [] , [] )
|
|
AlignDefault
|
|
(RowSpan 1)
|
|
(ColSpan 1)
|
|
[ Plain [ Str "col3" , Space , Str "content" ] ]
|
|
]
|
|
]
|
|
]
|
|
(TableFoot ( "" , [] , [] ) [])
|
|
]
|