Skip to content

Commit ddfb16d

Browse files
committed
LF is standard line ending (convert few CRLF files)
There were three files with the wrong line endings, they're now converted. Added .gitattributes and .editorconfig to make this clear and documented.
1 parent c217151 commit ddfb16d

5 files changed

Lines changed: 420 additions & 389 deletions

File tree

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
[*.py]
11+
indent_style = space
12+
indent_size = 4
13+
14+
[Makefile]
15+
indent_style = tab
16+
17+
[*.md]
18+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Normalize text files to LF in the repository and on checkout (all platforms).
2+
* text=auto eol=lf
3+
4+
# Binary assets (do not line-ending-normalize)
5+
*.png binary
6+
*.jpg binary
7+
*.jpeg binary
8+
*.gif binary
9+
*.webp binary
10+
*.pdf binary
11+
*.odt binary
12+
*.odg binary
13+
*.lwp binary

0 commit comments

Comments
 (0)