mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 17:02:12 -05:00
Fix `p` is always used for table spec (refs #1580)
This commit is contained in:
1 parent
2ebf9d6456
commit
e7fa8a6c2b
1 file changed
+2
-2
@@ -1106,6 +1106,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
context += str(extracols + 1)
|
||||
context += '}{l|}{}'
|
||||
self.table.col += extracols
|
||||
if len(node.traverse(nodes.paragraph)) >= 2:
|
||||
self.table.has_problematic = True
|
||||
self.context.append(context)
|
||||
|
||||
def depart_entry(self, node):
|
||||
@@ -1214,8 +1216,6 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
|
||||
def visit_paragraph(self, node):
|
||||
self.body.append('\n')
|
||||
if self.table:
|
||||
self.table.has_problematic = True
|
||||
|
||||
def depart_paragraph(self, node):
|
||||
self.body.append('\n')
|
||||
|
||||
Reference in new issue
Block a user