cyberdelia/django-pipeline — pull request #108 by trey0 (2012-05-07 02:12:13+00:00)
Title: fix #107 -- rather than deleting newlines in javascript template strings, escape them

See issue #107 for an explanation of the problem I'm trying to fix.

Probably newlines were originally deleted because of the notion that "newlines are not significant in HTML". That may be close to true but unfortunately it is not exactly true :) , and I hope you guys agree this approach will cause minimum surprise for new users like me.

I think it's also important to do minimum modifications on template strings because you don't know what template language the user may be working with.

Thanks, I'm enjoying working with django-pipeline!