-
Notifications
You must be signed in to change notification settings - Fork 119
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
Unable to use \r \n #15
Comments
Hm that's interesting. Are you copying from textarea or something else? |
Feel like sudodoki/copy-to-clipboard#14 can fix it. |
Yeah I attempted this by using a .replace() on my string, replacing commas with either \n or \r, before I give the string to the copy component. The string console logs properly (with actual returns) before I attempt the copy, but the \r and \n are removed upon copy. This is being done directly in the javascript, not in a textarea. I'll check out copy-to-clipboard#14. |
Probably, update of copy-to-clipboard dep will fix it. |
This is true. Just tried using copy-to-clipboard 2.0.0 by itself. \r and \n are properly supported. |
published |
My copy needs to respect new lines and returns. Is there support for this?
The text was updated successfully, but these errors were encountered: