##// END OF EJS Templates
hgmanpage: adapt to Docutils 0.8 API change
Satish Balay -
r14633:cdda48c9 default
parent child Browse files
Show More
@@ -48,6 +48,7 b' import re'
48 48
49 49 from docutils import nodes, writers, languages
50 50 import roman
51 import inspect
51 52
52 53 FIELD_LIST_INDENT = 7
53 54 DEFINITION_LIST_INDENT = 7
@@ -160,6 +161,11 b' class Translator(nodes.NodeVisitor):'
160 161 nodes.NodeVisitor.__init__(self, document)
161 162 self.settings = settings = document.settings
162 163 lcode = settings.language_code
164 arglen = len(inspect.getargspec(languages.get_language)[0])
165 if arglen == 2:
166 self.language = languages.get_language(lcode,
167 self.document.reporter)
168 else:
163 169 self.language = languages.get_language(lcode)
164 170 self.head = []
165 171 self.body = []
General Comments 0
You need to be logged in to leave comments. Login now