The
TrimClipboard command
removes leading and trailing whitespace from the clipboard content.
Example
In the following expansion:
{CopySelection}
{TrimClipboard}
{Paste}
- {CopySelection} copies the selection to the clipboard,
- {TrimClipboard} trims the clipboard content,
-
and finally {Paste} pastes the clipboard content,
thereby overwriting the selection with its version without leading and trailing whitespace.