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

login
register
mail settings
Submitter phabricator
Date May 5, 2019, 5:12 a.m.
Message ID <30cc8f6beef53d438c9a5a53791ddc1d@localhost.localdomain>
Download mbox | patch
Permalink /patch/39958/
State Not Applicable
Headers show

Comments

phabricator - May 5, 2019, 5:12 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf9cdd732cb58: minirst: support subsubsubsubsections (header level 5) with marker &#039;&#039;&#039;&#039; (authored by Sietse, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6328?vs=14961&id=15014

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

AFFECTED FILES
  mercurial/minirst.py

CHANGE DETAILS




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

Patch

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.