D6328: minirst: support subsubsubsubsections (header level 5) with marker ''''

Sietse (Sietse Brouwer) phabricator at mercurial-scm.org
Sun Apr 28 17:17:40 EDT 2019


Sietse created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6328

AFFECTED FILES
  mercurial/minirst.py

CHANGE DETAILS

diff --git a/mercurial/minirst.py b/mercurial/minirst.py
--- a/mercurial/minirst.py
+++ b/mercurial/minirst.py
@@ -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.



To: Sietse, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list