-
Notifications
You must be signed in to change notification settings - Fork 79
Support CRLF as EOL #131
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
Comments
In #228 (comment), @zbraniecki wrote:
|
I've looked on the web but couldn't find anything to support this. Do you have a link?
I'm concerned about the first-run experience. Say a localizer wants to edit an FTL file. They download Atom or VS Code and start editing. Both of these editors default to CRLF on Windows. Or maybe they use Notepad, which now supports reading and editing LF, but still saves new files with CRLF. I'm fine with not supporting CR alone; it's my understanding that it died together with Mac OS 9. However not supporting CRLF has a potential to hurt our most vulnerable users—those who don't know what went wrong nor how to fix it. For them, Fluent will be broken. |
If CR/CRLF are not supported as line endings, then the grammar should be updated as according to
|
There's an open issue in the grammar spec repo about making this call: projectfluent/fluent#154. Let's more the decision making over there. |
projectfluent/fluent#154 has been fixed. As per the Syntax spec, the supported line endings should be |
Support for the |
Currently the parser only supports LF as the EOL character. Any files created on Windows are broken unless special care is taken to change their EOLs.
The text was updated successfully, but these errors were encountered: