mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix `p
` is always used for table spec (refs #1580)
This commit is contained in:
parent
2ebf9d6456
commit
e7fa8a6c2b
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user