awslabs / aws-shell

An integrated shell for working with the AWS CLI.
Apache License 2.0
7.17k stars 772 forks source link

Windows doc gens show ^M chars #42

Open jamesls opened 8 years ago

jamesls commented 8 years ago

When generating docs on windows, newlines are rendered as '^M'. Need to track down where this \r\n behavior is being introduced.

HipsterZipster commented 4 years ago

Was this ever resolved? @jamesls

Kittzus commented 4 years ago

@HipsterZipster Nope, still an issue as of today

KyleMit commented 3 years ago

This seems to do with how newline characters in Windows are handled in VIM.

From DOS vs. Unix Line Endings:

DOS/Windows uses a Carriage Return + Line Feed (<CR><LR>) (\r\n) Unix/Linux just uses a Line Feed (<LR>) (\n)

From How Is Newline Handled in Python and Various Editors?:

When you use e ++ff=unix3 to force Vim to treat this file as a unix file. Vim will then treat the \n characters as newline, thus removing it from the buffer. But the \r characters in the file will now be treated as normal characters and will be shown as ^M

See Also