diff --git a/src/fenrirscreenreader/commands/commands/copy_last_echo_to_clipboard.py b/src/fenrirscreenreader/commands/commands/copy_last_echo_to_clipboard.py index d6918a4a..136cd1f2 100644 --- a/src/fenrirscreenreader/commands/commands/copy_last_echo_to_clipboard.py +++ b/src/fenrirscreenreader/commands/commands/copy_last_echo_to_clipboard.py @@ -18,7 +18,7 @@ class command(): return _('copies last presented text to the clipboard') def run(self): - lastEcho = self.env['runtime']['outputManager'].getLastEcho() + lastEcho = self.env['runtime']['outputManager'].getLastEcho().rstrip() self.env['runtime']['memoryManager'].addValueToFirstIndex('clipboardHistory', lastEcho) self.env['runtime']['outputManager'].presentText(lastEcho, soundIcon='CopyToClipboard', interrupt=True)