-
Notifications
You must be signed in to change notification settings - Fork 20
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
Table formatting breaks #20
Comments
Adding to this issue, formatting will also break if:
And formatting right now has a chance to break if:
https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#grid-tables I'm looking at trying to get around this right now. It basically revolves around us parsing the whole table block as opposed to the header and rows separately, reconstructing the table geometry from the morecols and morerows attributes of occasional Should be easy enough to tack on an extra whitespace row for rows containing a vertical bar in the paragraph contents in all of that other mess. |
Table from hell example: +-----------+-----------+----------+
| 1 | 2 | 3 |
+===========+===========+==========+
| 4 | 5 | 6 |
+ +-----------+ +
| | 7 | |
+ +-----------+ +
| | 8 | |
+ +-----+-----+ +
| | 9 | 10 | |
+-----------+-----+-----+----------+
| 11 | 12 | 13 |
+-----------+-----------+----------+
|
Trying to format
results in
which is a broken table.
The problem seems to happen when the cell content is a single word and fills the full width of the cell or
full_width-1
.The text was updated successfully, but these errors were encountered: