Show More
@@ -672,8 +672,10 b' def formattedhelp(ui, commands, name, ke' | |||||
672 | text = help_(ui, commands, name, |
|
672 | text = help_(ui, commands, name, | |
673 | subtopic=subtopic, unknowncmd=unknowncmd, full=full, **opts) |
|
673 | subtopic=subtopic, unknowncmd=unknowncmd, full=full, **opts) | |
674 |
|
674 | |||
675 |
|
|
675 | blocks, pruned = minirst.parse(text, keep=keep) | |
676 | section=section) |
|
676 | if section: | |
|
677 | blocks = minirst.filtersections(blocks, section) | |||
|
678 | formatted = minirst.formatplain(blocks, textwidth) | |||
677 |
|
679 | |||
678 | # We could have been given a weird ".foo" section without a name |
|
680 | # We could have been given a weird ".foo" section without a name | |
679 | # to look for, or we could have simply failed to found "foo.bar" |
|
681 | # to look for, or we could have simply failed to found "foo.bar" | |
@@ -685,6 +687,7 b' def formattedhelp(ui, commands, name, ke' | |||||
685 | keep.append('omitted') |
|
687 | keep.append('omitted') | |
686 | else: |
|
688 | else: | |
687 | keep.append('notomitted') |
|
689 | keep.append('notomitted') | |
688 |
|
|
690 | blocks, pruned = minirst.parse(text, keep=keep) | |
689 | section=section) |
|
691 | if section: | |
690 | return formatted |
|
692 | blocks = minirst.filtersections(blocks, section) | |
|
693 | return minirst.formatplain(blocks, textwidth) |
General Comments 0
You need to be logged in to leave comments.
Login now