Closed th0mr closed 1 month ago
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 tests_regression/rst
that triggers the issue and the fix.
I'll have a look into this when I get some time this week 😄
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