Skip to content

Commit d3bb381

Browse files
committed
🐛 [HTML] Fix cont line tag in the table header
1 parent 83b5b3b commit d3bb381

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/backends/html/html_backend.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ function _html__print(
287287
)
288288

289289
elseif action == :horizontal_continuation_cell
290-
_aprintln(buf, _html__create_tag("td", "⋯"), il, ns; minify)
290+
tag = rs == :column_labels ? "th" : "td"
291+
_aprintln(buf, _html__create_tag(tag, "⋯"), il, ns; minify)
291292

292293
elseif action _VERTICAL_CONTINUATION_CELL_ACTIONS
293294
# Obtain the cell style.

test/backends/html/cropping.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<th style = "font-weight: bold; text-align: right;">Col. 1</th>
2222
<th style = "font-weight: bold; text-align: right;">Col. 2</th>
2323
<th style = "font-weight: bold; text-align: right;">Col. 3</th>
24-
<td>&ctdot;</td>
24+
<th>&ctdot;</th>
2525
</tr>
2626
</thead>
2727
<tbody>
@@ -72,7 +72,7 @@
7272
<th style = "font-weight: bold; text-align: right;">Col. 1</th>
7373
<th style = "font-weight: bold; text-align: right;">Col. 2</th>
7474
<th style = "font-weight: bold; text-align: right;">Col. 3</th>
75-
<td>&ctdot;</td>
75+
<th>&ctdot;</th>
7676
</tr>
7777
</thead>
7878
<tbody>
@@ -118,7 +118,7 @@
118118
<th style = "font-weight: bold; text-align: right;">Col. 1</th>
119119
<th style = "font-weight: bold; text-align: right;">Col. 2</th>
120120
<th style = "font-weight: bold; text-align: right;">Col. 3</th>
121-
<td>&ctdot;</td>
121+
<th>&ctdot;</th>
122122
</tr>
123123
</thead>
124124
<tbody>

test/backends/html/full.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
<th class = "stubheadLabel" style = "font-weight: bold; text-align: right;">Rows</th>
142142
<th style = "font-weight: bold; text-align: right;">Col. 1</th>
143143
<th colspan = "1" style = "border-bottom: 1px solid black; font-weight: bold; text-align: center;">Merged Column<sup>1</sup></th>
144-
<td>&ctdot;</td>
144+
<th>&ctdot;</th>
145145
</tr>
146146
</thead>
147147
<tbody>
@@ -240,7 +240,7 @@
240240
<th class = "stubheadLabel" style = "font-weight: bold; text-align: right;">Rows</th>
241241
<th style = "font-weight: bold; text-align: right;">Col. 1</th>
242242
<th colspan = "1" style = "border-bottom: 1px solid black; font-weight: bold; text-align: center;">Merged Column<sup>1</sup></th>
243-
<td>&ctdot;</td>
243+
<th>&ctdot;</th>
244244
</tr>
245245
</thead>
246246
<tbody>

0 commit comments

Comments
 (0)