Skip to content

Commit

Permalink
[mixed-line-endings] Create the initial documentation (#8994)
Browse files Browse the repository at this point in the history
Refs #5953
  • Loading branch information
Pierre-Sassoulas authored Sep 3, 2023
1 parent 2d3aadd commit de56b55
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ tests/input/** -text
tests/**/data/** -text
tests/regrtest_data/** -text
doc/data/messages/u/unexpected-line-ending-format/bad.py -text
doc/data/messages/m/mixed-line-endings/bad.py -text
2 changes: 2 additions & 0 deletions doc/data/messages/m/mixed-line-endings/bad.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
print("Hello") # CRLF (\r\n)
print("World") # LF (\n) # [mixed-line-endings]
1 change: 0 additions & 1 deletion doc/data/messages/m/mixed-line-endings/details.rst

This file was deleted.

1 change: 0 additions & 1 deletion doc/data/messages/m/mixed-line-endings/good.py

This file was deleted.

2 changes: 2 additions & 0 deletions doc/data/messages/m/mixed-line-endings/good/full_crlf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
print("Hello") # CRLF (\r\n)
print("World") # CRLF (\r\n)
2 changes: 2 additions & 0 deletions doc/data/messages/m/mixed-line-endings/good/full_lf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
print("Hello") # LF (\n)
print("World") # LF (\n)
3 changes: 3 additions & 0 deletions doc/data/messages/m/mixed-line-endings/related.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- `History of CRLF and LF <https://stackoverflow.com/a/6521730/2519059>`_
- `Dealing with line endings in Git <https://stackoverflow.com/a/10855862/2519059>`_
- `A Collection of Useful .gitattributes Templates <https://github.com/alexkaratarakis/gitattributes>`_
4 changes: 2 additions & 2 deletions doc/data/messages/u/unexpected-line-ending-format/bad.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
print("Sometimes I drink soda.") # CRLF # [unexpected-line-ending-format]
print("Sometimes I drink sulfuric acid.") # CRLF # [unexpected-line-ending-format]
print("I'm drinking tea!") # CRLF (\r\n) # [unexpected-line-ending-format]
print("I'm drinking water!") # CRLF (\r\n) # [unexpected-line-ending-format]
4 changes: 2 additions & 2 deletions doc/data/messages/u/unexpected-line-ending-format/good.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
print("I'm drinking tea!") # LF
print("I'm drinking water!") # LF
print("I'm drinking tea!") # LF (\n)
print("I'm drinking water!") # LF (\n)

0 comments on commit de56b55

Please sign in to comment.