Mercurial > public > mercurial-scm > hg
comparison mercurial/minirst.py @ 18748:6e676fb6ea44
help: use a full header for topic titles
...for prettier HTML!
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Sun, 10 Feb 2013 12:58:57 +0100 |
parents | e7cfe3587ea4 |
children | 8aa053b99c24 |
comparison
equal
deleted
inserted
replaced
18747:f5db3092790f | 18748:6e676fb6ea44 |
---|---|
19 """ | 19 """ |
20 | 20 |
21 import re | 21 import re |
22 import util, encoding | 22 import util, encoding |
23 from i18n import _ | 23 from i18n import _ |
24 | |
25 def section(s): | |
26 return "%s\n%s\n\n" % (s, "\"" * encoding.colwidth(s)) | |
27 | |
28 def subsection(s): | |
29 return "%s\n%s\n\n" % (s, '=' * encoding.colwidth(s)) | |
30 | |
31 def subsubsection(s): | |
32 return "%s\n%s\n\n" % (s, "-" * encoding.colwidth(s)) | |
33 | |
34 def subsubsubsection(s): | |
35 return "%s\n%s\n\n" % (s, "." * encoding.colwidth(s)) | |
24 | 36 |
25 def replace(text, substs): | 37 def replace(text, substs): |
26 ''' | 38 ''' |
27 Apply a list of (find, replace) pairs to a text. | 39 Apply a list of (find, replace) pairs to a text. |
28 | 40 |