feat: normalize line endings
This commit is contained in:
parent
a3a6052b54
commit
938e91e5e6
8
.gitattributes
vendored
Normal file
8
.gitattributes
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
# We'll let Git's auto-detection algorithm infer if a file is text. If it is,
|
||||
# enforce LF line endings regardless of OS or git configurations.
|
||||
* text=auto eol=lf
|
||||
|
||||
# Isolate binary files in case the auto-detection algorithm fails and
|
||||
# marks them as text files (which could brick them).
|
||||
*.{png,jpg,jpeg,gif,webp,woff,woff2} binary
|
||||
|
@ -26,7 +26,7 @@ namespace Lab4.RemoveLines
|
||||
}
|
||||
}
|
||||
return No;
|
||||
}
public static List<int> LongestLines(string fin)
|
||||
} public static List<int> LongestLines(string fin)
|
||||
{
|
||||
List<int> lines = new List<int>();
|
||||
int longestLength = 0;
|
||||
@ -52,7 +52,7 @@ namespace Lab4.RemoveLines
|
||||
}
|
||||
|
||||
return lines;
|
||||
}
public static void RemoveLine(string fin, string fout, int No)
|
||||
} public static void RemoveLine(string fin, string fout, int No)
|
||||
{
|
||||
using (StreamReader reader = new StreamReader(fin, Encoding.UTF8))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user