elabs/serenade.js — Issue #24: Views delivered via apache on Windows - getting double spaced lines
Author: kimptoc
Created: 2012-02-22 18:06:37+00:00
State: open

Hi,

This is probably an issue with my apache configuration or something else, but just in case...

I have a Serenade view that I am pulling remotely via a jQuery/get. When I pull it from a Mac or Ubuntu box, it all works fine, but when I use a Windows box, with apache, Serenade fails to parse the view, unmatch INDENT or similar issue.

Looks like the issue is that git has turned the LF into CRLF on Windows and so when apache servers the file, Serenade has an issue parsing it.

I have fixed it for now by turning off the git autocrlf feature - so it leaves files with just LF in them.

I presume Serenade cannot tell where the file has come from and thus handle it appropriately - so I guess the ideal fix is to get Apache to server them in a certain way...

Does that sound correct ?

Thanks, Chris