in reply to [OT] Why does newline in Windows print as having width?
G'day Lotus1,
From my *nix (macOS) command line, with my usual 120 CPL (characters per line), I see what you show in the first example (file in Windows); at 80 CPL, I see what you show in the third example (Linux command line).
What CPL are you using for your Windows and Linux command line examples? How does the appearance change using different CPL settings?
I don't have a Windows command line handy to perform any testing now, and I'm an infrequent Windows user, so I'm just guessing that the blank line before the "2" in the second example (Windows command line) is the result of wrapping at 80 CPL and the fact that "\n" is one character (newline) on Linux but two characters (carriage return + newline) on Windows. Do note that guessing is the operative word here.
— Ken
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: [OT] Why does newline in Windows print as having width?
by Lotus1 (Vicar) on Aug 18, 2018 at 04:59 UTC |