• Denrael

    I’m sure this can be done with Pythonista, but not being a Python programmer I’m not quite certain how.

    If I Have a file in the following format:

    Line 1 with a hard line break
    Line 2 with a hard line break
    Line 3 with a hard line break

    Line 4 with a hard line break with a double newline for the paragraph break
    Line 5 with a hard line break

    I would like to create a workflow that calls Pythonista to remove the hard line breaks creating two paragrahs by respecting the double line feed paragraph break.

    Any help welcome.

    Thanks

    posted in Pythonista read more
  • Denrael

    @ccc said:

    text = '\n\n'.join(text.splitlines())

    Thanks! That worked perfectly in my workflow.

    posted in Editorial read more
  • Denrael

    I'm hoping this might be out there already, or one of the Python or Grep experts can point me in the right direction. I am looking to add a newline to the end of every line of text in a document. That is all it has to do. I would like to make this a workflow as it is something I do often with articles copied from a web page for reference.

    Thoughts or ideas?
    Thanks

    posted in Editorial read more

Internal error.

Oops! Looks like something went wrong!