Skip to content

Commit 9cd4c03

Browse files
committed
...
1 parent 83a2fef commit 9cd4c03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -677,10 +677,10 @@ def depart_figure(self: ManualPageTranslator, node: figure) -> None:
677677
setattr(ManualPageTranslator, 'depart_image', depart_image)
678678
setattr(ManualPageTranslator, 'depart_figure', depart_figure)
679679

680-
orig_astext = Translator.astext # type: ignore
681-
def astext(self: Translator) -> Any:
680+
orig_astext = ManualPageTranslator.astext
681+
def astext(self: ManualPageTranslator) -> Any:
682682
b = []
683-
for line in self.body: # type: ignore
683+
for line in self.body:
684684
if line.startswith('.SH'):
685685
x, y = line.split(' ', 1)
686686
parts = y.splitlines(keepends=True)
@@ -689,7 +689,7 @@ def astext(self: Translator) -> Any:
689689
b.append(line)
690690
self.body = b
691691
return orig_astext(self)
692-
setattr(Translator, 'astext', astext)
692+
setattr(ManualPageTranslator, 'astext', astext)
693693

694694

695695
def setup_man_pages() -> None:

0 commit comments

Comments
 (0)