Mercurial > public > mercurial-scm > hg
diff tests/test-minirst.py @ 15261:e2df5b866d22
minirst: add basic HTML formatting support
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 15 Oct 2011 00:39:01 -0500 |
parents | c981f4a9ea74 |
children | e8076af14498 |
line wrap: on
line diff
--- a/tests/test-minirst.py Fri Oct 14 15:40:50 2011 -0500 +++ b/tests/test-minirst.py Sat Oct 15 00:39:01 2011 -0500 @@ -3,8 +3,9 @@ def debugformat(title, text, width, **kwargs): print "%s formatted to fit within %d characters:" % (title, width) + formatted = minirst.format(text, width, **kwargs) + html = minirst.formathtml(minirst.parse(text, **kwargs)[0]) print "-" * 70 - formatted = minirst.format(text, width, **kwargs) if type(formatted) == tuple: print formatted[0] print "-" * 70 @@ -12,6 +13,8 @@ else: print formatted print "-" * 70 + print html + print "-" * 70 print paragraphs = """