Fix `p` is always used for table spec (refs #1580)

This commit is contained in:
Takeshi KOMIYA 2016-01-09 10:03:21 +09:00
parent 2ebf9d6456
commit e7fa8a6c2b

View File

@ -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')