From 4917dd5f84eca86f8964e55431babb6065bbdc14 Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Mon, 8 Feb 2021 13:21:28 -0500 Subject: [PATCH] i18n: Locale transform: Change heading syntax to work for both RST and Markdown --- sphinx/transforms/i18n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/transforms/i18n.py b/sphinx/transforms/i18n.py index d588f0411..6bea6c6ee 100644 --- a/sphinx/transforms/i18n.py +++ b/sphinx/transforms/i18n.py @@ -263,7 +263,7 @@ class Locale(SphinxTransform): # see: http://docutils.sourceforge.net/docs/ref/doctree.html#structural-subelements if isinstance(node, nodes.title): # This generates:
msgstr
- msgstr = msgstr + '\n' + '-' * len(msgstr) * 2 + msgstr = msgstr + '\n' + '=' * len(msgstr) * 2 patch = publish_msgstr(self.app, msgstr, source, node.line, self.config, settings)