diff mercurial/templatefuncs.py @ 39337:a2a5d4ad5276

minirst: make format() simply return a formatted text It's a source of bugs to change the type of the return value conditionally.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 05 Aug 2018 12:11:19 +0900
parents 3588e41f796d
children 83f8f7b9fa60
line wrap: on
line diff
--- a/mercurial/templatefuncs.py	Sun Aug 05 12:20:43 2018 +0900
+++ b/mercurial/templatefuncs.py	Sun Aug 05 12:11:19 2018 +0900
@@ -575,7 +575,7 @@
     text = evalstring(context, mapping, args[0])
     style = evalstring(context, mapping, args[1])
 
-    return minirst.format(text, style=style, keep=['verbose'])[0]
+    return minirst.format(text, style=style, keep=['verbose'])
 
 @templatefunc('separate(sep, args...)', argspec='sep *args')
 def separate(context, mapping, args):