]> git.karo-electronics.de Git - linux-beck.git/commit
docs: sphinx-extensions: make rstFlatTable work with docutils 0.13
authorDmitry Shachnev <mitya57@debian.org>
Sun, 18 Dec 2016 10:11:46 +0000 (13:11 +0300)
committerJonathan Corbet <corbet@lwn.net>
Sun, 18 Dec 2016 20:30:29 +0000 (13:30 -0700)
commit217e2bfab22e740227df09f22165e834cddd8a3b
tree01e50c55e7a47e283c1fedc8274f3aa38b4dc8c8
parent3fa71d0f58a9b9df84e8e79196f961bcfbf01b2e
docs: sphinx-extensions: make rstFlatTable work with docutils 0.13

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: Dmitry Shachnev <mitya57@debian.org>
Cc: <stable@vger.kernel.org> # 4.8.x-
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/sphinx/rstFlatTable.py