Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McKinney <26463+jpmckinney@users.noreply.github.com>2021-02-08 21:21:28 +0300
committerJames McKinney <26463+jpmckinney@users.noreply.github.com>2021-02-08 21:47:41 +0300
commit4917dd5f84eca86f8964e55431babb6065bbdc14 (patch)
treeac2e4017741e43df487310473891e1cfed193a3f /sphinx/transforms
parentd0785e549de52252c819aa6209bb0ce4a3078db1 (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.py2
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)