mercurial/minirst.py
changeset 9540 cad36e496640
parent 9417 4c3fb45123e5
child 9623 32727ce029de
--- a/mercurial/minirst.py	Sun Oct 04 09:59:13 2009 +0200
+++ b/mercurial/minirst.py	Sun Oct 04 12:18:43 2009 +0200
@@ -310,9 +310,11 @@
                              subsequent_indent=subindent)
 
 
-def format(text, width):
+def format(text, width, indent=0):
     """Parse and format the text according to width."""
     blocks = findblocks(text)
+    for b in blocks:
+        b['indent'] += indent
     blocks = findliteralblocks(blocks)
     blocks = findsections(blocks)
     blocks = findbulletlists(blocks)