From ba644c5914a9cb00de7bc8a94816fc9623047b2b Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Sat, 20 Apr 2019 02:20:08 -0400 Subject: [PATCH] remove \x03 from ends of tdf lines --- ASCII/plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index b061dc6..f93aab5 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -744,6 +744,8 @@ class ASCII(callbacks.Plugin): paste = "" output = output.decode().replace('\r\r\n', '\r\n').replace('\x03\x03', '').strip('\r\n') for line in output.splitlines(): + if line.endswith('\x03'): + line = line[:-1] if self.registryValue('pasteEnable', msg.args[0]): paste += line + "\n" if not line.strip():