Show More
@@ -453,6 +453,8 b' def formatblock(block, width):' | |||||
453 | indent = ' ' * block['indent'] |
|
453 | indent = ' ' * block['indent'] | |
454 | if block['type'] == 'admonition': |
|
454 | if block['type'] == 'admonition': | |
455 | admonition = _admonitiontitles[block['admonitiontitle']] |
|
455 | admonition = _admonitiontitles[block['admonitiontitle']] | |
|
456 | if not block['lines']: | |||
|
457 | return indent + admonition + '\n' | |||
456 | hang = len(block['lines'][-1]) - len(block['lines'][-1].lstrip()) |
|
458 | hang = len(block['lines'][-1]) - len(block['lines'][-1].lstrip()) | |
457 |
|
459 | |||
458 | defindent = indent + hang * ' ' |
|
460 | defindent = indent + hang * ' ' |
General Comments 0
You need to be logged in to leave comments.
Login now