Merge pull request #9314 from jfbu/latex_9313_missing_curly_brace

Fix #9313
This commit is contained in:
Takeshi KOMIYA 2021-06-13 17:13:17 +09:00 committed by GitHub
commit 669c35a6bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@ Features added
Bugs fixed
----------
* 9313: LaTeX: complex table with merged cells broken since 4.0
Testing
--------

View File

@ -966,7 +966,7 @@ class LaTeXTranslator(SphinxTranslator):
# insert suitable strut for equalizing row heights in given multirow
self.body.append(r'\sphinxtablestrut{%d}' % cell.cell_id)
else: # use \multicolumn for wide multirow cell
self.body.append(r'\multicolumn{%d}{|l|}\sphinxtablestrut{%d}}' %
self.body.append(r'\multicolumn{%d}{|l|}{\sphinxtablestrut{%d}}' %
(cell.width, cell.cell_id))
def depart_row(self, node: Element) -> None: