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