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

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

Encode audio

Records audio until you tap it to stop, then encodes it into a text-based format, then copies it to your clipboard (to be decoded and played back later).

Get Shortcut »

Open driving settings

Opens into the Settings app to the Driving section for the Maps app, where you can toggle settings like avoiding tolls or highways, or showing the compass or speed limit while navigating.

Get Shortcut »


Get way deeper into Shortcuts – become a member.

Browse more