mercurial/minirst.py
changeset 9417 4c3fb45123e5
parent 9293 e48a48b754d3
child 9540 cad36e496640
--- a/mercurial/minirst.py	Thu Sep 03 02:42:56 2009 +0200
+++ b/mercurial/minirst.py	Thu Sep 03 21:07:06 2009 +0200
@@ -279,6 +279,8 @@
 
 def formatblock(block, width):
     """Format a block according to width."""
+    if width <= 0:
+        width = 78
     indent = ' ' * block['indent']
     if block['type'] == 'margin':
         return ''