Merge "Make a backward compatible docutils fix"

This commit is contained in:
Jenkins 2017-03-06 17:11:23 +00:00 committed by Gerrit Code Review
commit 0e14807eb4
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ class TableFromText(Table):
tgroup = nodes.tgroup(max_cols)
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
col_width in col_widths)