Merge "Make a backward compatible docutils fix"
This commit is contained in:
commit
0e14807eb4
|
@ -59,7 +59,9 @@ class TableFromText(Table):
|
||||||
tgroup = nodes.tgroup(max_cols)
|
tgroup = nodes.tgroup(max_cols)
|
||||||
table += tgroup
|
table += tgroup
|
||||||
|
|
||||||
col_widths = self.get_column_widths(max_cols)[1]
|
col_widths = self.get_column_widths(max_cols)
|
||||||
|
if isinstance(col_widths, tuple):
|
||||||
|
col_widths = col_widths[1]
|
||||||
tgroup.extend(nodes.colspec(colwidth=col_width) for
|
tgroup.extend(nodes.colspec(colwidth=col_width) for
|
||||||
col_width in col_widths)
|
col_width in col_widths)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue