Trim selected lines

Select text fragment. In Advanced submenu of Edit menu click Trim selected lines. The spaces at the end of lines in selected text will be removed.