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.
Removing Hard Line Breaks
-
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 breakLine 4 with a hard line break with a double newline for the paragraph break
Line 5 with a hard line breakI 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
-
maybe re replace \n if not \n before or after it
http://codepad.org/AoDlfeVC
[