changeset 42251:f9cdd732cb58

minirst: support subsubsubsubsections (header level 5) with marker '''' Differential Revision: https://phab.mercurial-scm.org/D6328
author Sietse Brouwer <sbbrouwer@gmail.com>
date Fri, 26 Apr 2019 12:40:26 +0200
parents 037a97d62625
children a42cc325b682
files mercurial/minirst.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/minirst.py	Fri May 03 15:37:08 2019 +0200
+++ b/mercurial/minirst.py	Fri Apr 26 12:40:26 2019 +0200
@@ -44,6 +44,9 @@
 def subsubsubsection(s):
     return "%s\n%s\n\n" % (s, "." * encoding.colwidth(s))
 
+def subsubsubsubsection(s):
+    return "%s\n%s\n\n" % (s, "'" * encoding.colwidth(s))
+
 def replace(text, substs):
     '''
     Apply a list of (find, replace) pairs to a text.