diff options
Diffstat (limited to 'dev-python/sphinx/files/sphinx-1.1.3-docutils-manpage.patch')
-rw-r--r-- | dev-python/sphinx/files/sphinx-1.1.3-docutils-manpage.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-python/sphinx/files/sphinx-1.1.3-docutils-manpage.patch b/dev-python/sphinx/files/sphinx-1.1.3-docutils-manpage.patch new file mode 100644 index 00000000000..82609f4afdc --- /dev/null +++ b/dev-python/sphinx/files/sphinx-1.1.3-docutils-manpage.patch @@ -0,0 +1,35 @@ +# HG changeset patch +# User Georg Brandl <georg@python.org> +# Date 1351590528 -3600 +# Node ID ffb145b7884fc926d6a68f4aaeede1d4964f727c +# Parent 2c107bc997e8817c451ba24089766eefb6e60fc3 +Closes #998: fix manpage writer in expectation of docutils 0.10 API change + +diff --git a/sphinx/writers/manpage.py b/sphinx/writers/manpage.py +--- a/sphinx/writers/manpage.py ++++ b/sphinx/writers/manpage.py +@@ -72,6 +72,11 @@ + # since self.append_header() is never called, need to do this here + self.body.append(MACRO_DEF) + ++ # Overwrite admonition label translations with our own ++ for label, translation in admonitionlabels.items(): ++ self.language.labels[label] = self.deunicode(translation) ++ ++ + # overwritten -- added quotes around all .TH arguments + def header(self): + tmpl = (".TH \"%(title_upper)s\" \"%(manual_section)s\"" +@@ -193,12 +198,6 @@ + def depart_seealso(self, node): + self.depart_admonition(node) + +- # overwritten -- use our own label translations +- def visit_admonition(self, node, name=None): +- if name: +- self.body.append('.IP %s\n' % +- self.deunicode(admonitionlabels.get(name, name))) +- + def visit_productionlist(self, node): + self.ensure_eol() + names = [] |