aboutsummaryrefslogtreecommitdiff
path: root/test/html-reader.native
diff options
context:
space:
mode:
authorRuqi <[email protected]>2023-06-24 23:18:03 +0700
committerGitHub <[email protected]>2023-06-24 09:18:03 -0700
commitf257c97170ba8db3b771135b98b198d5de2bdb5b (patch)
treee468be0e400877bab25f46182ef051b304c91fe1 /test/html-reader.native
parent5246f02f0bb9c176a6d2f6e3d0c03407d8a67445 (diff)
Update TableBody RowHeadColumns caculation: change from max to min (#8634)
This change sets RowHeadColumns to the minimum value of each row, which gives better results in cases where rows have different numbers of leading th tags.
Diffstat (limited to 'test/html-reader.native')
-rw-r--r--test/html-reader.native101
1 files changed, 100 insertions, 1 deletions
diff --git a/test/html-reader.native b/test/html-reader.native
index dba1cb85f..828cb8fc6 100644
--- a/test/html-reader.native
+++ b/test/html-reader.native
@@ -2262,7 +2262,7 @@ Pandoc
])
[ TableBody
( "" , [] , [] )
- (RowHeadColumns 1)
+ (RowHeadColumns 0)
[]
[ Row
( "" , [] , [] )
@@ -2285,6 +2285,105 @@ Pandoc
(ColSpan 1)
[ Plain [ Str "3" ] ]
]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 3)
+ [ Plain [ Str "Details" ] ]
+ ]
+ ]
+ ]
+ (TableFoot
+ ( "" , [] , [] )
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "4" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "5" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "6" ] ]
+ ]
+ ])
+ , HorizontalRule
+ , Table
+ ( "" , [] , [] )
+ (Caption Nothing [])
+ [ ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ , ( AlignDefault , ColWidthDefault )
+ ]
+ (TableHead ( "" , [] , [] ) [])
+ [ TableBody
+ ( "" , [] , [] )
+ (RowHeadColumns 0)
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "X" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Y" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "Z" ] ]
+ ]
+ ]
+ [ Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "1" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "2" ] ]
+ , Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 1)
+ [ Plain [ Str "3" ] ]
+ ]
+ , Row
+ ( "" , [] , [] )
+ [ Cell
+ ( "" , [] , [] )
+ AlignDefault
+ (RowSpan 1)
+ (ColSpan 3)
+ [ Plain [ Str "Details" ] ]
+ ]
]
]
(TableFoot