diff -r 2b8c8b8d1a06 -r ead71b15efd5 mercurial/templatefuncs.py --- a/mercurial/templatefuncs.py Sat May 26 03:01:14 2018 +0530 +++ b/mercurial/templatefuncs.py Wed Jun 06 13:31:24 2018 -0400 @@ -559,9 +559,9 @@ text = evalstring(context, mapping, args[0]) style = evalstring(context, mapping, args[1]) - return minirst.format(text, style=style, keep=['verbose']) + return minirst.format(text, style=style, keep=['verbose'])[0] -@templatefunc('separate(sep, args)', argspec='sep *args') +@templatefunc('separate(sep, args...)', argspec='sep *args') def separate(context, mapping, args): """Add a separator between non-empty arguments.""" if 'sep' not in args: