Skip to content

Commit de56b55

Browse files
[mixed-line-endings] Create the initial documentation (#8994)
Refs #5953
1 parent 2d3aadd commit de56b55

File tree

9 files changed

+14
-6
lines changed

9 files changed

+14
-6
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ tests/input/** -text
44
tests/**/data/** -text
55
tests/regrtest_data/** -text
66
doc/data/messages/u/unexpected-line-ending-format/bad.py -text
7+
doc/data/messages/m/mixed-line-endings/bad.py -text
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
print("Hello") # CRLF (\r\n)
2+
print("World") # LF (\n) # [mixed-line-endings]

doc/data/messages/m/mixed-line-endings/details.rst

-1
This file was deleted.

doc/data/messages/m/mixed-line-endings/good.py

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
print("Hello") # CRLF (\r\n)
2+
print("World") # CRLF (\r\n)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
print("Hello") # LF (\n)
2+
print("World") # LF (\n)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- `History of CRLF and LF <https://stackoverflow.com/a/6521730/2519059>`_
2+
- `Dealing with line endings in Git <https://stackoverflow.com/a/10855862/2519059>`_
3+
- `A Collection of Useful .gitattributes Templates <https://github.com/alexkaratarakis/gitattributes>`_
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
print("Sometimes I drink soda.") # CRLF # [unexpected-line-ending-format]
2-
print("Sometimes I drink sulfuric acid.") # CRLF # [unexpected-line-ending-format]
1+
print("I'm drinking tea!") # CRLF (\r\n) # [unexpected-line-ending-format]
2+
print("I'm drinking water!") # CRLF (\r\n) # [unexpected-line-ending-format]
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
print("I'm drinking tea!") # LF
2-
print("I'm drinking water!") # LF
1+
print("I'm drinking tea!") # LF (\n)
2+
print("I'm drinking water!") # LF (\n)

0 commit comments

Comments
 (0)