1. Realize that no all line boundaries are "\r\n'.
2. You might try passing in "\r\n" in a template variable in case the
filter argument handling isn't processing the backslashes:
render...(...{...newline:"\r\n",...}) in the view, or in the extra
context in the urls.py if you're using generic vie
Hello,
I was wondering if it was at all possible to remove line breaks from a
text passed in from a template variable. Ideally I'd like to do
something like: {{ text|cut:"\r\n" }} , but that doesn't seem to work.
I've tried googling and searching on the mailing list with no results.
Thanks for y
2 matches
Mail list logo