Skip to content

Commit

Permalink
Merge pull request #8853 from jpmckinney/markdown-locale-heading-3.x
Browse files Browse the repository at this point in the history
i18n: Locale transform: Change heading syntax to work for both RST and Markdown
  • Loading branch information
tk0miya authored Feb 9, 2021
2 parents d0785e5 + 4917dd5 commit 3207da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/transforms/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def apply(self, **kwargs: Any) -> None:
# 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)
Expand Down

0 comments on commit 3207da1

Please sign in to comment.