Previously, the line number counting code didn't increment line numbers when
encoutering carriage returns. This is in-line with the line numbers displayed
by Unix tools like cat -n, for instance. But browsers treat \r characters
differently -- \r, \r\n and \n, all display a newline in browsers.
Previously, the line number counting code didn't increment line numbers when encoutering carriage returns. This is in-line with the line numbers displayed by Unix tools like
cat -n
, for instance. But browsers treat\r
characters differently --\r
,\r\n
and\n
, all display a newline in browsers.