I'm using Sphinx to document a Python project.
There seems to be a bit of inconsistency with the .. csv-table::
directive.
The main issue is a new line in a cell. And my questionable mental health.
The following code:
.. csv-table::
:header: Header1, Header2, Header3
A, B, "These lines appear as one line,
even though they are written in two lines."
C, D, "| These lines appear as two lines,
| but they are indented, and my OCD will simply not allow it."
E, F, "| If I continue this line in another line,
it will appear in a new line."
G, H, "If there is a blank line between the two lines,
there will be a blank line between the lines."
Will render as:
I have searched through the entire reStructuredText manual, but could not find a way to solve it.
Is there any way to write two lines in one cell that will appear as the 2nd row, but without the indentation?
The theme is sphinx_rtd_theme.
I found the theme.css file (C:Python34Libsite-packagessphinx_rtd_themestaticcssheme.css), but I can't find the section of the table definition for newline styling
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…