Preserving carraige returns causes extra lines in browser
Everything works fine when your input is from a Unix system (\n line endings), but when you get \r\n like from Windows, the carriage returns cause a problem. The linefeed/newline is translated into
properly, but the carriage return before it is preserved, so output becomes @\r
\n@, which puts the
on a line all by itself in the browser.
Comments and changes to this ticket
(from [42abe0b55972956749d97b9a9a5f12a7ca6c1375]) Strip carriage returns and deal only with linefeeds
Carriage returns before linefeeds are a problem. The easiest solution is to strip them out before parsing. RedCloth 3 doesn't preserve them either, so it must be okay with users. Plus, it makes the output more predictable and standardized.