Skip to content

Commit a01baf4

Browse files
authored
Force checkouts of .ftl files to use LF (#85)
See projectfluent/fluent#229 for context.
1 parent b1bcce4 commit a01baf4

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.ftl eol=lf

fluent-syntax/.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tests/fixtures/crlf.ftl eol=crlf
2+
tests/fixtures/cr.ftl eol=cr

fluent-syntax/tests/fixtures/crlf.ftl

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
2-
key01 = Value 01
3-
key02 =
4-
5-
Value 02
6-
Continued
7-
8-
.title = Title
9-
10-
# ERROR Unclosed StringLiteral
11-
err03 = { "str
12-
13-
# ERROR Missing newline after ->.
14-
err04 = { $sel -> }
1+
2+
key01 = Value 01
3+
key02 =
4+
5+
Value 02
6+
Continued
7+
8+
.title = Title
9+
10+
# ERROR Unclosed StringLiteral
11+
err03 = { "str
12+
13+
# ERROR Missing newline after ->.
14+
err04 = { $sel -> }

0 commit comments

Comments
 (0)