-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Difference between Mac OSX/Windows #38
Comments
Try the |
Hi @shama. Thx for your quick response. the described problem is not the due to the concatenation of more than one file, it consists within one single template itself. let's have the following example:
and compare it to these two outputs Mac OSX (with \n):
Windows 7 (with \r\n):
|
Johannes - I'm happy I'm not alone! I just joined a team and am the lone Windows user. After running grunt on my Windows machine, the compiled files have "\r\n" where linefeeds exist. The only issue is that my Mac coworkers who run the same command get "\n" in their compiled output. We're using grunt-contrib-handlebars. |
@NessDan sorry, we're switched to gulpjs in the meantime. afaik we hadn't found any solution for this problem though. is that correct, windows-team-mate @catearcher? |
@NessDan @johannesnagl No solution, but a workaround: Now all your template files have unix line endings, and all future templates will have them, too. This means that line endings in your compiled templates will also be the same on Windows, Linux and Mac OS. More info: https://help.github.com/articles/dealing-with-line-endings |
As this issue is still open, I found a really easy solution and I wanted to share it for anyone who could have the same problem.
|
We're having a multi-platform dev-environment setup.
Most of our users are having OS X, whereas one brave team member is using Windows.
If he is building templates, the js code is translated to "\r\n" for every linebreak. when building the exact same template on OSX, it's changed to "\n" instead because the two platforms deal linebreaks differently.
is there any chance to have an (streamlining-)option within jst?
The text was updated successfully, but these errors were encountered: