3 ms·
This does precisely nothing to solve the ambiguity issue when a final line lacks a newline. The representation of that newline isn't relevant to the problem.
by samatman 3y ago
This does precisely nothing to solve the ambiguity issue when a final line lacks a newline. The representation of that newline isn't relevant to the problem.
- Izkata 3y agoIt's actually slightly worse: Windows defines newline as a delimiter, not a terminator. So this: foo\nbar\n Would be 2 lines in *nix and 3 lines in windows.
- Gormo 3y agoThe point is that having a sequence of two delimiters to signal the end of the logical line allows you to have single instances of either delimiter included within the text. This allows visual line breaks to be included within the same line as understood by the regex parser.