Closed fe9lix closed 13 years ago
i have just tested this on a windows 7 machine with a file saved with crlf endings and it works
You mean before or after the bugfix? ;) I'm also on Windows 7 and testing locally...it only works with this fix, i.e. after removing all crlfs. Otherwise, if you view the source in Firebug, you have all these line breaks in the template string which render the JavaScript invalid.
After the bugfix. Sorry for not being specific about that
Ok, cool, so I think they should pull it into master soon :)
+1 Took me forever to figure out what was going on
Thanks for the fix -- it's merged to master, and will go out with the next release.
I seem to be having Windows line-ending issues on Jammit 0.6.6, I can see double-line endings in Windows-style js my yui temporary merged file.
Specifically, my input files have CRLF, and the temporary file that YUI is balking on trying to compress has CRCRLF in it.
The compile_jst function now replaces crlf in (\r\n) in JST templates. This fixes an issue where the function would render line breaks within the template string on windows (resulting in invalid JS).