-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some characters break grid tables #9145
Comments
jgm/doclayout has code to calculate widths for East Asian characters (which can be 0, 1, or 2 width). But this character is not in the lookup table doclayout uses -- presumably because it's a western accent combining character. We should modify doclayout so that it knows about all combining characters, not just those in the East Asian set. Moving this issue to doclayout, where it will need to be addressed. |
Sorry: there is in fact code to deal with these combining characters, so I'm not yet sure what is going on here. |
OK, transferring back to pandoc.
So, my guess is that somewhere in the code that was added to deal with row/colspans, someone used |
A more minimal test case:
This is parsed as having rowspan=2. Replacing the characters on the bottom row with regular ascii makes the problem go away. |
The problem seems to lie in the ArrayTable {arrayTableCells = array ((1,1),(2,2)) [((1,1),ContentCell 2 1 [" a ","==========="," \248\798 "]),((1,2),ContentCell 2 1 [" back ","======="," o\798 "]),((2,1),ContinuationCell (1,1)),((2,2),ContinuationCell (1,2))], arrayTableHead = Nothing, arrayTableFoot = Nothing, arrayTableColSpecs = array (1,2) [(1,(AlignDefault,11)),(2,(AlignDefault,7))] @tarleb can you have a look at this? |
Submitted issue quarto-dev/gridtables#10 |
Explain the problem.
The first table works just fine. The second table breaks even though the only difference is that some entries have additional diacritics (U+031E COMBINING DOWN TACK BELOW)
Pandoc version?
pandoc 3.1.8, fedora 38
The text was updated successfully, but these errors were encountered: