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.


    Carriage returns in .py files makes Pythonista crash

    Pythonista
    2
    2
    1408
    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.
    • upwart
      upwart last edited by

      I have noticed a (minor) bug. When there are Carriage Returns in the script, Pythonista frequently crashes when deleting a line.
      I noticed this behaviour after I had edited a script on my PC. Apparantly the editor has added a CR carriage for every line. Usually Pythonista ends a line with just a LF. The CR/LF pair seems to be fatal for the Pythonista editor.
      Of course, it's quite easy to delete the CRs with the PC editor.
      By the way, the script runs perfectly even with CRs in the file.

      Maybe good to know for other users experiencing crashes and maybe OMZX can fix this bug in a future version.

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

        For a quick fix, see: https://github.com/Pythonista-Tools/Pythonista-Tools/blob/master/Ten Lines or Less.md

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