latex: modify the conditions for colspecs

This commit is contained in:
Takeshi KOMIYA
2017-02-04 21:32:36 +09:00
parent 976fc326b9
commit 35ce2ea432

View File

@@ -354,10 +354,10 @@ class Table(object):
return '{|%s|}\n' % '|'.join(colspecs)
elif self.has_problematic:
return '{|*{%d}{\\X{1}{%d}|}}\n' % (self.colcount, self.colcount)
elif self.is_longtable():
return '{|' + ('l|' * self.colcount) + '}\n'
else:
elif self.get_table_type() == 'tabulary':
return '{|' + ('L|' * self.colcount) + '}\n'
else:
return '{|' + ('l|' * self.colcount) + '}\n'
def escape_abbr(text):