asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.89k stars 297 forks source link

1.7.2 - table - rowspan and colspan forget cell alignment in preview #473

Open pstueck opened 4 years ago

pstueck commented 4 years ago

When a cell has a colspan or rowspan, the global formatting of the next cell displayed is the one of the cell directly following the spanned cell but not that of the cell where it is displayed. Cells need to be aligned with specific alignments. … ^|(3,2) >|(3,3) and >|(4,3)

[cols="<,^,>"]
|===
|(1,1)|(1,2)|(1,3)
.2+|(2,1)|(2,2)|(2,3)
|(3,2)|(3,3)
2+|(4,1)|(4,3)
|(5,1)|(5,2)|(5,3)
|===

Expected rendering (intentionally no MD table) would be …

(1,1)   |   (1,2)   |   (1,3)
(2,1)   |   (2,2)   |   (2,3)
        |   (3,2)   |   (3,3)
(4,1)               |   (4,3)
(5,1)   |   (5,2)   |   (5,3)

but it is rendered like this … so (3,2) gets the alignment of (3,1), (3,3) that of (3,2) and (4,3) that of (4,2).

(1,1)   |   (1,2)   |   (1,3)
(2,1)   |   (2,2)   |   (2,3)
        | (3,2)     | (3,3)
(4,1)               | (4,3)
(5,1)   |   (5,2)   |   (5,3)

Fun fact: the AsciiDoc plugin for IntelliJ does the same.

Regards Peter

rahmanusta commented 4 years ago

Hi,

Both we use Asciidoctor. It should be reported to https://github.com/asciidoctor

pstueck commented 4 years ago

Thanks for pointing in the right direction … already an — quite aged — issue #989 there.