mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
i18n: Locale transform: Change heading syntax to work for both RST and Markdown
This commit is contained in:
parent
d0785e549d
commit
4917dd5f84
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user