omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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

    Pythonista
    2
    3
    1585
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ihf
      ihf last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • KipCarter
        KipCarter last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • ihf
          ihf last edited by

          Thanks. I just got it to work using the clipboard module rather than doing the paste.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors