-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Rinohtype crashes when processing a heading-only / empty body table #420
Comments
th0mr
changed the title
Rinohtype crashes when processing a heading-only / empty bodied table
Rinohtype crashes when processing a heading-only / empty body table
Oct 18, 2023
It is likely that this case is not handled. It should be easy to check whether the table body is missing (or empty, rather) and gracefully handle this situation. If you feel up to it, please provide a PR with a test in |
I'll have a look into this when I get some time this week 😄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
Sphinx or rinoh output
Source files
Hi,
I'm having issues whenever rinohtype encounters a header-only table i.e. a table with a header but no rows.
The best way I could find to replicate this is with this csv-table.
RST Input:
Where empty.csv is a completely empty file, i.e. no rows.
After experimenting, I found HTML can generate this type of table correctly. Which makes me think this could be a bug for rinoh.
HTML Output:
I’ve had a look through the issues and cant see anything like this that has been raised before. Is there something I can do to avoid this, or is this a bug?
I've assembled a minimal example document with this table in here. minimal.zip
It was built with
python -m sphinx -M rinoh . ./build
Versions
The text was updated successfully, but these errors were encountered: