From f8812288783a974e4f7ea61257e85eab2c4d0957 Mon Sep 17 00:00:00 2001 From: Darko Poljak Date: Tue, 13 Mar 2018 15:09:13 +0100 Subject: [PATCH] Fix manpage generation. --- cdist/sphinxext/manpage.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cdist/sphinxext/manpage.py b/cdist/sphinxext/manpage.py index 97b41f03..a436421d 100644 --- a/cdist/sphinxext/manpage.py +++ b/cdist/sphinxext/manpage.py @@ -27,13 +27,12 @@ class ManualPageWriter(sphinx.writers.manpage.ManualPageWriter): def __init__(self, builder): super().__init__(builder) - self.translator_class = ( - self.builder.translator_class or ManualPageTranslator) class ManualPageBuilder(sphinx.builders.manpage.ManualPageBuilder): name = 'cman' + default_translator_class = ManualPageTranslator def write(self, *ignored): docwriter = ManualPageWriter(self)