Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Problem pasting a string
-
I am trying to copy/paste a string from another app into Pythonista but the string has trailing EOL and Pythonista gives an error. Is there a way to get this string into a Pythonista script?
-
Have you attempted to paste the string from the source into a simple text editor and then copy it back out again to be pasted into Pythonista? I've run into several instances across various platforms and apps where data has hidden data that another app will reject out of hand. I've not seen a situation where striping the data with some other tool was not effective in getting it to paste properly.
One caveat to this is if you're attempting to paste several lines into your python code, often must be accomplished a line at a time. So if the 'string' you are referring to has multiple lines, that is another game entirely.
Hope this helps.
-
Thanks. I just got it to work using the clipboard module rather than doing the paste.