Show More
@@ -145,7 +145,7 b' def findbulletlists(blocks):' | |||||
145 | for line in blocks[i]['lines']: |
|
145 | for line in blocks[i]['lines']: | |
146 | if line.startswith('- '): |
|
146 | if line.startswith('- '): | |
147 | items.append(dict(type='bullet', lines=[], |
|
147 | items.append(dict(type='bullet', lines=[], | |
148 |
indent=blocks[i]['indent'] |
|
148 | indent=blocks[i]['indent'])) | |
149 | line = line[2:] |
|
149 | line = line[2:] | |
150 | items[-1]['lines'].append(line) |
|
150 | items[-1]['lines'].append(line) | |
151 | blocks[i:i+1] = items |
|
151 | blocks[i:i+1] = items | |
@@ -259,8 +259,8 b' def formatblock(block, width):' | |||||
259 | initindent = subindent = indent |
|
259 | initindent = subindent = indent | |
260 | text = ' '.join(map(str.strip, block['lines'])) |
|
260 | text = ' '.join(map(str.strip, block['lines'])) | |
261 | if block['type'] == 'bullet': |
|
261 | if block['type'] == 'bullet': | |
262 |
initindent = indent |
|
262 | initindent = indent + '- ' | |
263 | subindent = indent |
|
263 | subindent = indent + ' ' | |
264 | elif block['type'] == 'option': |
|
264 | elif block['type'] == 'option': | |
265 | subindent = indent + block['width'] * ' ' |
|
265 | subindent = indent + block['width'] * ' ' | |
266 |
|
266 |
General Comments 0
You need to be logged in to leave comments.
Login now