##// END OF EJS Templates
help: inline minirst.format()...
Yuya Nishihara -
r39344:9b800601 default
parent child Browse files
Show More
@@ -672,8 +672,10 b' def formattedhelp(ui, commands, name, ke'
672 672 text = help_(ui, commands, name,
673 673 subtopic=subtopic, unknowncmd=unknowncmd, full=full, **opts)
674 674
675 formatted, pruned = minirst.format(text, textwidth, keep=keep,
676 section=section)
675 blocks, pruned = minirst.parse(text, keep=keep)
676 if section:
677 blocks = minirst.filtersections(blocks, section)
678 formatted = minirst.formatplain(blocks, textwidth)
677 679
678 680 # We could have been given a weird ".foo" section without a name
679 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 687 keep.append('omitted')
686 688 else:
687 689 keep.append('notomitted')
688 formatted, pruned = minirst.format(text, textwidth, keep=keep,
689 section=section)
690 return formatted
690 blocks, pruned = minirst.parse(text, keep=keep)
691 if section:
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