Mercurial > hg-stable
comparison mercurial/minirst.py @ 42280: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 | aaad36b88298 |
children | 2372284d9457 |
comparison
equal
deleted
inserted
replaced
42279:037a97d62625 | 42280:f9cdd732cb58 |
---|---|
41 def subsubsection(s): | 41 def subsubsection(s): |
42 return "%s\n%s\n\n" % (s, "-" * encoding.colwidth(s)) | 42 return "%s\n%s\n\n" % (s, "-" * encoding.colwidth(s)) |
43 | 43 |
44 def subsubsubsection(s): | 44 def subsubsubsection(s): |
45 return "%s\n%s\n\n" % (s, "." * encoding.colwidth(s)) | 45 return "%s\n%s\n\n" % (s, "." * encoding.colwidth(s)) |
46 | |
47 def subsubsubsubsection(s): | |
48 return "%s\n%s\n\n" % (s, "'" * encoding.colwidth(s)) | |
46 | 49 |
47 def replace(text, substs): | 50 def replace(text, substs): |
48 ''' | 51 ''' |
49 Apply a list of (find, replace) pairs to a text. | 52 Apply a list of (find, replace) pairs to a text. |
50 | 53 |