mercurial/minirst.py
changeset 39310 a2a5d4ad5276
parent 39307 92e9aa38a578
child 39311 57f9b3d91abc
--- 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"""