Skip to content

Conversation

@TuongNM
Copy link
Contributor

@TuongNM TuongNM commented Nov 17, 2025

I reused code from the asciidoc writer which has been extracted into T.P.Writers.Shared as the functions insertCurrentSpansAtColumn, takePreviousSpansAtColumn and decrementTrailingRowSpans. With these the ANSI writer is now able to keep track of row spans and apply them in rows.

Fixes: #10149

[API change] T.P.Writers.Shared:
Add functions `insertCurrentSpansAtColumn`, `takePreviousSpansAtColumn`
and `decrementTrailingRowSpans` for applying and keeping track of
RowSpans over multiple rows.

Also apply hlint suggestion to replace case with maybe.
@silby
Copy link
Contributor

silby commented Nov 26, 2025

Nicely done!

@jgm jgm merged commit 58e741a into jgm:main Nov 30, 2025
11 of 14 checks passed
@TuongNM TuongNM deleted the ansi-writer-row-spans branch November 30, 2025 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ANSI writer ignores RowSpan in table cells

3 participants