Skip to content

ANSI writer ignores RowSpan in table cells #10149

@silby

Description

@silby

As of #9565 the table renderer in the ANSI writer doesn't account for table cells with a row span. For example:

a.html:

<table>
	<tbody>
		<tr><td colspan="2">a</td><td rowspan="2">c</td><td>d</td></tr>
		<tr><td>a</td><td>b</td><td>d</td></tr>
		<tr><td>a</td><td>b</td><td>c</td><td>d</td></tr>
	</tbody>
</table>

Command and output:

♪ pandoc$ cabal exec -- pandoc --columns 12 -w ansi a.html
── ── ── ──
a     c  d
a  b  d
a  b  c  d
── ── ── ──
Table 1

Should be:

── ── ── ──
a     c  d
a  b     d
a  b  c  d
── ── ── ──
Table 1

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions