minirst: support subsubsubsubsections (header level 5) with marker ''''
authorSietse Brouwer <sbbrouwer@gmail.com>
Fri, 26 Apr 2019 12:40:26 +0200
changeset 42251 f9cdd732cb58
parent 42250 037a97d62625
child 42252 a42cc325b682
minirst: support subsubsubsubsections (header level 5) with marker '''' Differential Revision: https://phab.mercurial-scm.org/D6328
mercurial/minirst.py
--- 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.