Closed techauthoruk closed 1 year ago
OK!
So, I have made some progress. My issues were not caused by a single issue, but most of them centred around tables. If I create a table like this (which renders fine to HTML):
I get the exception error. Changing the table to look like this:
Which is ok, although the tables don't look great without the merged rows / cells: @brechtm why should this formatting cause an issue?
Another issue I came across was the use of the :index:
directive. If I added an index entry to a heading or subheading:
:index:`A Heading`
####################
I again get an exception - index entries in body text don't cause an issue.
I'm just glad I can create pdfs again, but it would be nice to know if there is a way to have tables with merged rows / cells in the output - maybe I am creating the tables incorrectly?
If I create a table like this (which renders fine to HTML):
I get the exception error. Changing the table to look like this:
It looks like this case is indeed not handled by rinohtype. I'll fix this.
However, I think this is probably what you want:
+----------------------+------------------------------------------------------+
| System name | Product X |
+----------------------+------------------------------------------------------+
| Nominal dimensions | Refer to the Prepare section of this manual |
+----------------------+ +
| Nominal weight | |
+----------------------+------------------------------------------------------+
| Electrical supply | 400 / 208 V AC |+-| 5 % three phrase 50 / 60 Hz |
+----------------------+------------------------------------------------------+
If you have all cells in a row spanning two columns as in your first example, there isn't really a difference with no row-spanning.
If you want to force a line break inside a table cell (or in a regular paragraph, for that matter), you can use a line block:
+----------------------+------------------------------------------------------+
| System name | Product X |
+----------------------+------------------------------------------------------+
| | Nominal dimensions | Refer to the Prepare section of this manual |
| | Nominal weight | |
+----------------------+------------------------------------------------------+
| Electrical supply | 400 / 208 V AC |+-| 5 % three phrase 50 / 60 Hz |
+----------------------+------------------------------------------------------+
Another issue I came across was the use of the
:index:
directive. If I added an index entry to a heading or subheading::index:`A Heading` ####################
I again get an exception - index entries in body text don't cause an issue.
And you caught yet another bug. This one's fixed too now. Keep'm coming! 😉
Is there an existing issue for this?
Sphinx or rinoh output
Source files
As the error message isn't very clear for me to decypher, I am attaching the error log: sphinx-err-azbjp0id.log
I cannot share the source files here, but could send them privately
Versions