Editorial Workflows

_RemoveWhitespace

public workflow

Install Workflow

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Take a block of text and remove white space before, after as well as blank lines.

Meant to be used by Workflow.app, it might work in other cases too.

Shared by: @lamnatos

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Remove Whitespace ?
  • Trim leading/trailing whitespace
  • Remove empty lines
Remove Whitespace ?
  • Trim leading/trailing whitespace
  • Remove empty lines
Repeat… ?
Repeat with
  • Every Line
  • Every Match of Regular Expression:
^\s*(.*)\s*$
Match Group
1
Reverse
OFF
Find ?
Search for
^\s*(.*)\s*$
Match Group (RegEx)
1
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
…End Repeat