mercurial/minirst.py
changeset 9291 cd5b6a11b607
parent 9156 c9c7e8cdac9c
child 9292 01e580143423
--- a/mercurial/minirst.py	Sun Aug 02 16:34:25 2009 +0200
+++ b/mercurial/minirst.py	Sun Aug 02 17:17:17 2009 +0200
@@ -243,7 +243,10 @@
     indent = ' ' * block['indent']
     if block['type'] == 'margin':
         return ''
-    elif block['type'] in ('literal', 'section'):
+    elif block['type'] == 'literal':
+        indent += '  '
+        return indent + ('\n' + indent).join(block['lines'])
+    elif block['type'] == 'section':
         return indent + ('\n' + indent).join(block['lines'])
     elif block['type'] == 'definition':
         term = indent + block['lines'][0]