From daf3bc516be17e6fc953cad9e8274fc7504568d6 Mon Sep 17 00:00:00 2001 From: lethosor Date: Mon, 8 Aug 2022 02:29:22 -0400 Subject: [PATCH] Switch to to fix line breaks in text output No visible change in HTML output; PDF looks different but still acceptable --- docs/sphinx_extensions/dfhack/tool_docs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sphinx_extensions/dfhack/tool_docs.py b/docs/sphinx_extensions/dfhack/tool_docs.py index 04318816b..42d995ff2 100644 --- a/docs/sphinx_extensions/dfhack/tool_docs.py +++ b/docs/sphinx_extensions/dfhack/tool_docs.py @@ -104,7 +104,7 @@ class DFHackToolDirectiveBase(sphinx.directives.ObjectDescription): @staticmethod def wrap_box(*children: List[nodes.Node]) -> nodes.Admonition: - return nodes.admonition('', *children, classes=['dfhack-tool-summary']) + return nodes.topic('', *children, classes=['dfhack-tool-summary']) def render_content(self) -> List[nodes.Node]: raise NotImplementedError