i18n: Locale transform: Change heading syntax to work for both RST and Markdown

This commit is contained in:
James McKinney 2021-02-08 13:21:28 -05:00
parent d0785e549d
commit 4917dd5f84
No known key found for this signature in database
GPG Key ID: 0D7F0CFE60B61694

View File

@ -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: <section ...><title>msgstr</title></section>
msgstr = msgstr + '\n' + '-' * len(msgstr) * 2
msgstr = msgstr + '\n' + '=' * len(msgstr) * 2
patch = publish_msgstr(self.app, msgstr, source,
node.line, self.config, settings)