mercurial/minirst.py
changeset 9292 01e580143423
parent 9291 cd5b6a11b607
child 9293 e48a48b754d3
--- a/mercurial/minirst.py	Sun Aug 02 17:17:17 2009 +0200
+++ b/mercurial/minirst.py	Sun Aug 02 21:29:15 2009 +0200
@@ -145,7 +145,7 @@
             for line in blocks[i]['lines']:
                 if line.startswith('- '):
                     items.append(dict(type='bullet', lines=[],
-                                      indent=blocks[i]['indent'] + 2))
+                                      indent=blocks[i]['indent']))
                     line = line[2:]
                 items[-1]['lines'].append(line)
             blocks[i:i+1] = items
@@ -259,8 +259,8 @@
         initindent = subindent = indent
         text = ' '.join(map(str.strip, block['lines']))
         if block['type'] == 'bullet':
-            initindent = indent[:-2] + '- '
-            subindent = indent
+            initindent = indent + '- '
+            subindent = indent + '  '
         elif block['type'] == 'option':
             subindent = indent + block['width'] * ' '