tests/test-minirst.py
changeset 10444 e99e0e077bc4
parent 10443 62d484a81dfe
child 10447 e957cc7cbd14
--- a/tests/test-minirst.py	Sun Oct 04 22:03:41 2009 +0200
+++ b/tests/test-minirst.py	Sat Feb 13 18:11:08 2010 +0100
@@ -1,11 +1,18 @@
 #!/usr/bin/env python
 
+from pprint import pprint
 from mercurial import minirst
 
 def debugformat(title, text, width, **kwargs):
     print "%s formatted to fit within %d characters:" % (title, width)
     print "-" * 70
-    print minirst.format(text, width, **kwargs)
+    formatted = minirst.format(text, width, **kwargs)
+    if type(formatted) == tuple:
+        print formatted[0]
+        print "-" * 70
+        pprint(formatted[1])
+    else:
+        print formatted
     print "-" * 70
     print