Remove and Count Line Breaks from Text Block
Snippet
Universal
Beginner
Snippets are pieces of workflows. You can copy and paste them directly into any Tray workflow.
New to snippets? Watch this video
For more details please see our Snippet Documentation
About this SnippetCopy
Copy
This is a more powerful version of find and replace - specifically for line breaks. You can choose what you want to replace the line breaks with AND the output of the script returns the number of line breaks replaced.
This snippet comes with Demo text so that you can test it out and see how it works before adding it to your production workflows.
This snippet was a collaboration with our community members. See the original thread in our Slack community here (must have access to the community).
See it in actionCopy
Copy