Commit 235394e1 authored by Dmitry Shachnev's avatar Dmitry Shachnev Committed by Greg Kroah-Hartman
Browse files

docs: sphinx-extensions: make rstFlatTable work with docutils 0.13

commit 217e2bfa upstream.

In docutils 0.13, the return type of get_column_widths method of the
Table directive has changed [1], which breaks our flat-table directive
and leads to a TypeError when trying to build the docs [2].

This patch adds support for the new return type, while keeping support
for older docutils versions too.

[1] https://sourceforge.net/p/docutils/patches/120/
[2] https://sourceforge.net/p/docutils/bugs/303/



Signed-off-by: default avatarDmitry Shachnev <mitya57@debian.org>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a26a016a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment