Forum Archive

A Simple Workflow?

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

ccc

Double spacing a piece of single spaced text can executed in Python by:

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

@ccc said:

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

Thanks! That worked perfectly in my workflow.