Fix manpage generation.

This commit is contained in:
Darko Poljak 2018-03-13 15:09:13 +01:00
parent e4f263ecb7
commit f881228878

View file

@ -27,13 +27,12 @@ class ManualPageWriter(sphinx.writers.manpage.ManualPageWriter):
def __init__(self, builder): def __init__(self, builder):
super().__init__(builder) super().__init__(builder)
self.translator_class = (
self.builder.translator_class or ManualPageTranslator)
class ManualPageBuilder(sphinx.builders.manpage.ManualPageBuilder): class ManualPageBuilder(sphinx.builders.manpage.ManualPageBuilder):
name = 'cman' name = 'cman'
default_translator_class = ManualPageTranslator
def write(self, *ignored): def write(self, *ignored):
docwriter = ManualPageWriter(self) docwriter = ManualPageWriter(self)