diff --git a/ASCII/plugin.py b/ASCII/plugin.py index 7dca62d..dcd2ca8 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -799,9 +799,10 @@ class ASCII(callbacks.Plugin): return paste = "" self.stopped[msg.args[0]] = False - output = output.decode().replace('\r\r\n', '\r\n').replace('\x03\x03', '') + output = output.decode().replace('\r\r\n', '\r\n') for line in output.splitlines(): - line = re.sub('\x03$', '', line) + line = re.sub('\x03\x03\s*', '\x0F ', line) + line = re.sub('\x0F\s*$', '', line) if self.registryValue('pasteEnable', msg.args[0]): paste += line + "\n" if not line.strip() and not self.stopped[msg.args[0]]: