diff options
author | James McKinney <26463+jpmckinney@users.noreply.github.com> | 2021-02-08 21:21:28 +0300 |
---|---|---|
committer | James McKinney <26463+jpmckinney@users.noreply.github.com> | 2021-02-08 21:47:41 +0300 |
commit | 4917dd5f84eca86f8964e55431babb6065bbdc14 (patch) | |
tree | ac2e4017741e43df487310473891e1cfed193a3f /sphinx/transforms | |
parent | d0785e549de52252c819aa6209bb0ce4a3078db1 (diff) |
i18n: Locale transform: Change heading syntax to work for both RST and Markdown
Diffstat (limited to 'sphinx/transforms')
-rw-r--r-- | sphinx/transforms/i18n.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: <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) |