Skip to content

Commit

Permalink
[mod] since [8010] get_column_widths() return one result again
Browse files Browse the repository at this point in the history
[8010] https://sourceforge.net/p/docutils/code/8010/
       docutils/docutils@eff936207

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
  • Loading branch information
return42 committed Oct 25, 2022
1 parent 2e84187 commit 7089d1b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions linuxdoc/rstFlatTable.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,6 @@ def __init__(self, directive):
def buildTableNode(self):

colwidths = self.directive.get_column_widths(self.max_cols)
if isinstance(colwidths, tuple):
# Since docutils 0.13, get_column_widths returns a (widths,
# colwidths) tuple, where widths is a string (i.e. 'auto').
# See https://sourceforge.net/p/docutils/patches/120/.
colwidths = colwidths[1]
stub_columns = self.directive.options.get('stub-columns', 0)
header_rows = self.directive.options.get('header-rows', 0)

Expand Down

0 comments on commit 7089d1b

Please sign in to comment.