Show More
@@ -452,6 +452,10 b' def parse(text, indent=0, keep=None):' | |||||
452 | blocks = findadmonitions(blocks) |
|
452 | blocks = findadmonitions(blocks) | |
453 | return blocks, pruned |
|
453 | return blocks, pruned | |
454 |
|
454 | |||
|
455 | def formatblocks(blocks, width): | |||
|
456 | text = '\n'.join(formatblock(b, width) for b in blocks) | |||
|
457 | return text | |||
|
458 | ||||
455 | def format(text, width, indent=0, keep=None): |
|
459 | def format(text, width, indent=0, keep=None): | |
456 | """Parse and format the text according to width.""" |
|
460 | """Parse and format the text according to width.""" | |
457 | blocks, pruned = parse(text, indent, keep or []) |
|
461 | blocks, pruned = parse(text, indent, keep or []) |
General Comments 0
You need to be logged in to leave comments.
Login now