Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templatefilters.py @ 32037:e5eab0fe69ee
templatekw: have showlist() take mapping dict with no **kwargs expansion (API)
See the previous commit for why.
splitlines() does not pass a mapping dict, which would probably mean the
legacy template didn't work from the beginning.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 05 Apr 2017 21:47:34 +0900 |
parents | a0f2d83f8083 |
children | 2ab7578e685b |
line wrap: on
line diff
--- a/mercurial/templatefilters.py Wed Apr 05 21:40:38 2017 +0900 +++ b/mercurial/templatefilters.py Wed Apr 05 21:47:34 2017 +0900 @@ -339,7 +339,7 @@ @templatefilter('splitlines') def splitlines(text): """Any text. Split text into a list of lines.""" - return templatekw.showlist('line', text.splitlines(), 'lines') + return templatekw.showlist('line', text.splitlines(), {}, plural='lines') @templatefilter('stringescape') def stringescape(text):