The bigger problem here is that many of the template tags do not accept filtered arguments passed an argument with a space because they are simply doing token.contents.split()
.
Here is a patch that seems to fix things for regroup
, ifchanged
, and with
. firstof
, if
, and ifequal
/ifnotequal
need some more (involved) work. I changed smart_split_re
to allow text before and after the quote characters. Not sure if we want smart_split()
to basically only be for parsing template tags, but it seems to be the only place it's used currently.