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
Line blocks have a left margin value in the sphinx_rtd_theme. One way to get rid of them is to create a custom CSS file which imports the theme's style rules and add a rule for line blocks within tables without that margin. Assuming the standard file and path names of a Sphinx project:
Create a _static/css/mystyle.css
file in your Sphinx project with the following content:
@import "theme.css";
table.docutils div.line-block {
margin-left: 0;
}
Add the following option to the conf.py
:
html_style = 'css/mystyle.css'
Rebuild the Sphinx project.