Remove empty lines

Uses a regular expressions to automatically get rid of new lines that don’t have any text in them.

Actions

shortcuts-action-icon-replace-text.webp
Replace Text
Replaces some text passed into the action with other text.
shortcuts-action-icon-copy-to-clipboard.webp
Copy to Clipboard
Copies the result of the last action to the clipboard.
shortcuts-action-icon-show-notification.webp
Show Notification
Displays a local notification.

More From This Folder

Special characters

Contains a dictionary of names and symbols that, when passed into Choose From List, becomes selectable – for whichever option is chosen, the corresponding symbol will be passed out and copied to the clipboard.

Get Shortcut »

Change text case

Takes the input from the Share sheet or clipboard, lets you choose from UPPERCASE, lowercase, Capitalizing Every Word, swapping to Title Case, or swapping to Sentence case, and copies it to your clipboard.

Get Shortcut »

Extra Details

Link to Run Shortcut
shortcuts://run-shortcut?name=Remove%20empty%20lines
Link to Open Shortcut
shortcuts://open-shortcut?name=Remove%20empty%20lines
AppleScript code
tell application “Shortcuts Events” run shortcut “Remove empty lines” end tell

More From The Library

3-Day Battery Life

All-in-one control for Apple Watch to turn off wake on wrist raise and the always on display, plus activate Theater Mode to disable any touches.

Inspired by David Smith: https: or or www.david-smith.org or blog or 2021 or 11 or 22 or glencoe or

Get Shortcut »

YouTube on TV

Opens the YouTube app on the chosen Apple TV, then opens the YouTube app on your mobile device – this lets you connect the two and manage your TV queue from your phone or iPad.

Get Shortcut »


Get way deeper into Shortcuts – become a member.

Browse more