Blame SOURCES/sphinx-docutils-0.10.patch

f1b9da
diff -up Sphinx-1.1.3/sphinx/writers/manpage.py.bak Sphinx-1.1.3/sphinx/writers/manpage.py
f1b9da
--- Sphinx-1.1.3/sphinx/writers/manpage.py.bak	2011-11-01 00:38:44.000000000 -0700
f1b9da
+++ Sphinx-1.1.3/sphinx/writers/manpage.py	2012-08-21 12:38:33.380808202 -0700
f1b9da
@@ -72,6 +72,11 @@ class ManualPageTranslator(BaseTranslato
f1b9da
         # since self.append_header() is never called, need to do this here
f1b9da
         self.body.append(MACRO_DEF)
f1b9da
 
f1b9da
+        # Overwrite admonition label translations with our own
f1b9da
+        for label, translation in admonitionlabels.items():
f1b9da
+            self.language.labels[label] = self.deunicode(translation)
f1b9da
+
f1b9da
+
f1b9da
     # overwritten -- added quotes around all .TH arguments
f1b9da
     def header(self):
f1b9da
         tmpl = (".TH \"%(title_upper)s\" \"%(manual_section)s\""
f1b9da
@@ -193,12 +198,6 @@ class ManualPageTranslator(BaseTranslato
f1b9da
     def depart_seealso(self, node):
f1b9da
         self.depart_admonition(node)
f1b9da
 
f1b9da
-    # overwritten -- use our own label translations
f1b9da
-    def visit_admonition(self, node, name=None):
f1b9da
-        if name:
f1b9da
-            self.body.append('.IP %s\n' %
f1b9da
-                             self.deunicode(admonitionlabels.get(name, name)))
f1b9da
-
f1b9da
     def visit_productionlist(self, node):
f1b9da
         self.ensure_eol()
f1b9da
         names = []