--- a/mercurial/minirst.py Sun Aug 05 12:20:43 2018 +0900
+++ b/mercurial/minirst.py Sun Aug 05 12:11:19 2018 +0900
@@ -673,13 +673,9 @@
if section:
blocks = filtersections(blocks, section)
if style == 'html':
- text = formathtml(blocks)
+ return formathtml(blocks)
else:
- text = formatplain(blocks, width=width)
- if keep is None:
- return text
- else:
- return text, pruned
+ return formatplain(blocks, width=width)
def filtersections(blocks, section):
"""Select parsed blocks under the specified section"""