I have some text that I’m sending to Drafts from Shortcuts.
I can’t seem to figure out a way to get Shortcuts to do this, so maybe Drafts can do it:
Given a large text file which has several blocks of text…
…and those blocks of text sometimes have multiple blank lines at the start or end (or both the start and end)…
…I would like to replace those blank lines with no more or less than ONE blank line.
Things I have already tried…
In Shortcuts, I have tried doing a search and replace for
\r or even
None of those did anything. It appears to me that (at least in the current version of Shortcuts (12.1, I think), there is no way to do a search/replace for a new line. Unless I missed it somehow, which I guess might be possible.
Things I have NOT already tried…
Any help would be appreciated. Thanks!