We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fa71d0 commit 217e2bfCopy full SHA for 217e2bf
Documentation/sphinx/rstFlatTable.py
@@ -157,6 +157,11 @@ def __init__(self, directive):
157
def buildTableNode(self):
158
159
colwidths = self.directive.get_column_widths(self.max_cols)
160
+ if isinstance(colwidths, tuple):
161
+ # Since docutils 0.13, get_column_widths returns a (widths,
162
+ # colwidths) tuple, where widths is a string (i.e. 'auto').
163
+ # See https://sourceforge.net/p/docutils/patches/120/.
164
+ colwidths = colwidths[1]
165
stub_columns = self.directive.options.get('stub-columns', 0)
166
header_rows = self.directive.options.get('header-rows', 0)
167
0 commit comments