-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Milestone
Description
Describe the bug
A clear and concise description of what the bug is.
Extra vertical

whitespace in table cells, particularly merged ones
To Reproduce
Steps to reproduce the behavior:
.. raw:: latex
%\def\sphinxAtStartPar{}
.. table:: longtable not ok
:class: longtable
+------------------------+------------+----------+----------+
| Header row, column 1 | Header 2 | Header 3 | Header 4 |
+========================+============+==========+==========+
| body row, merged columns | column 3 | column 4 |
+------------------------+------------+----------+----------+
| body row | ... | ... | |
+------------------------+------------+----------+----------+
.. table:: longtable not ok (2)
:class: longtable
+------------------------+------------+----------+----------+
| Header row, column 1 | Header 2 | Header 3 | Header 4 |
+========================+============+==========+==========+
| body row | ... | ... | |
+------------------------+------------+----------+----------+
| body row, merged columns | column 3 | column 4 |
+------------------------+------------+----------+----------+
.. tabularcolumns:: |*{4}{l|}
.. table:: tabular not ok
+------------------------+------------+----------+----------+
| Header row, column 1 | Header 2 | Header 3 | Header 4 |
+========================+============+==========+==========+
| body row | ... | ... | |
+------------------------+------------+----------+----------+
| body row, merged columns | column 3 | column 4 |
+------------------------+------------+----------+----------+
.. table:: tabulary worse of all
+------------------------+------------+----------+----------+
| Header row, column 1 | Header 2 | Header 3 | Header 4 |
+========================+============+==========+==========+
| body row | ... | ... | |
+------------------------+------------+----------+----------+
| body row, merged columns | column 3 | column 4 |
+------------------------+------------+----------+----------+
Expected behavior
One gets this by letting the raw directive inject \def\sphinxAtStartPar{}.
Environment info
- OS: [e.g. Unix/Linux/Mac/Win/other with version]
- Python version: [e.g. 3.7.1]
- Sphinx version: current 3.x branch after
- Sphinx extensions: [e.g. sphinx.ext.autodoc, recommonmark]
- Extra tools: [e.g. Browser, tex or something else]
Caused by #8781 merge
