Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasted text gets CR LF (windows) newlines #28

Closed
chriskuehl opened this issue Jan 5, 2017 · 0 comments
Closed

Pasted text gets CR LF (windows) newlines #28

chriskuehl opened this issue Jan 5, 2017 · 0 comments

Comments

@chriskuehl
Copy link
Owner

  1. Paste some text (multiple lines)
  2. Click "Raw Text" and copy the URL
  3. curl the URL into a file

The file now has CR LF newlines -- gross!

Probably because of http://stackoverflow.com/a/14217315/612279

I think it's reasonable to always normalize to unix newlines coming from the pastebin flow (we would never modify uploaded files, of course). A workaround for now is to upload the text as a plaintext file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant