|
@@ -158,12 +158,12 @@ class Trac2Markdown:
|
|
#
|
|
#
|
|
nested_line = line.lstrip(' ')
|
|
nested_line = line.lstrip(' ')
|
|
if nested_line.startswith('- ') or nested_line.startswith('* '):
|
|
if nested_line.startswith('- ') or nested_line.startswith('* '):
|
|
|
|
+ indent = len(line) - len(nested_line)
|
|
if not in_list:
|
|
if not in_list:
|
|
new_content.append("\n")
|
|
new_content.append("\n")
|
|
nested_level = 0
|
|
nested_level = 0
|
|
- prev_indent = 0
|
|
|
|
|
|
+ prev_indent = indent
|
|
in_list = True
|
|
in_list = True
|
|
- indent = len(line) - len(nested_line)
|
|
|
|
text_indent = len(line) - len(nested_line[1:].lstrip())
|
|
text_indent = len(line) - len(nested_line[1:].lstrip())
|
|
if indent > prev_indent:
|
|
if indent > prev_indent:
|
|
nested_level += 1
|
|
nested_level += 1
|