Update docstring to patches for table directives

table directives on docutils-0.13.1+ set source information to
caption node.  So these patch will be not necessary in feature
version of docutils.
https://sourceforge.net/p/docutils/patches/137/
This commit is contained in:
Takeshi KOMIYA
2017-02-28 23:19:00 +09:00
parent 9752525ed1
commit dea2064dfc

View File

@@ -57,7 +57,9 @@ class Meta(html.Meta):
class RSTTable(tables.RSTTable):
"""The table directive which sets source and line information to its caption."""
"""The table directive which sets source and line information to its caption.
Only for docutils-0.13 or older version."""
def make_title(self):
title, message = tables.RSTTable.make_title(self)
@@ -68,7 +70,9 @@ class RSTTable(tables.RSTTable):
class CSVTable(tables.CSVTable):
"""The csv-table directive which sets source and line information to its caption."""
"""The csv-table directive which sets source and line information to its caption.
Only for docutils-0.13 or older version."""
def make_title(self):
title, message = tables.CSVTable.make_title(self)
@@ -79,7 +83,9 @@ class CSVTable(tables.CSVTable):
class ListTable(tables.ListTable):
"""The list-table directive which sets source and line information to its caption."""
"""The list-table directive which sets source and line information to its caption.
Only for docutils-0.13 or older version."""
def make_title(self):
title, message = tables.ListTable.make_title(self)