From 6371dd0f8d3af134a3b623f42acceb630ff7e2e8 Mon Sep 17 00:00:00 2001 From: "kujiu (@rincevent)" Date: Sun, 31 Jan 2021 13:41:04 +0100 Subject: [PATCH] Fix: locale for typography of : --- sphinx_gemini_builder/writer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sphinx_gemini_builder/writer.py b/sphinx_gemini_builder/writer.py index d4e65f3..9fcf2b6 100644 --- a/sphinx_gemini_builder/writer.py +++ b/sphinx_gemini_builder/writer.py @@ -128,7 +128,7 @@ class GeminiTranslator(SphinxTranslator): def depart_title(self, node: Element) -> None: if isinstance(node.parent, nodes.Admonition): - self.add_text(': ') + self.add_text(__(': ')) def visit_subtitle(self, node: Element) -> None: pass @@ -432,7 +432,7 @@ class GeminiTranslator(SphinxTranslator): pass def visit_classifier(self, node: Element) -> None: - self.add_text(' : ') + self.add_text(__(': ')) def depart_classifier(self, node: Element) -> None: pass @@ -493,7 +493,7 @@ class GeminiTranslator(SphinxTranslator): pass def _visit_admonition(self, node: Element) -> None: - self.add_text(admonitionlabels[node.tagname] + ':') + self.add_text(admonitionlabels[node.tagname] + __(': ')) def _depart_admonition(self, node: Element) -> None: self.end_block()