mercurial/docutils-0.8.patch
2023-06-29 17:56:54 +02:00

26 lines
868 B
Diff

------------------------
diff -r 6c54df68d1de doc/hgmanpage.py
--- a/doc/hgmanpage.py Thu Jun 02 08:41:01 2011 -0500
+++ b/doc/hgmanpage.py Thu Jun 02 08:45:18 2011 -0500
@@ -48,6 +48,7 @@
from docutils import nodes, writers, languages
import roman
+import inspect
FIELD_LIST_INDENT = 7
DEFINITION_LIST_INDENT = 7
@@ -160,7 +161,11 @@
nodes.NodeVisitor.__init__(self, document)
self.settings = settings = document.settings
lcode = settings.language_code
- self.language = languages.get_language(lcode)
+ arglen=len(inspect.getargspec(languages.get_language)[0])
+ if arglen == 2:
+ self.language = languages.get_language(lcode,self.document.reporter)
+ else:
+ self.language = languages.get_language(lcode)
self.head = []
self.body = []
self.foot = []