From 5af0ee9669319736aaa829aebb59689b4c00a7a4 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Sat, 4 May 2019 01:20:50 -0400 Subject: [PATCH] better tdf spacing --- ASCII/plugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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]]: