remove breaks in tdf output

This commit is contained in:
Gordon Shumway 2019-05-04 00:36:23 -04:00 committed by GitHub
parent f368228f13
commit 223deb65d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -800,9 +800,9 @@ class ASCII(callbacks.Plugin):
return
paste = ""
self.stopped[msg.args[0]] = False
output = output.decode().replace('\r\r\n', '\r\n').replace('\x03\x03', '\x0F')
output = output.decode().replace('\r\r\n', '\r\n').replace('\x03\x03', '')
for line in output.splitlines():
line = re.sub('\x0F\s+\x03$', '', line)
line = re.sub('\x03$', '', line)
if self.registryValue('pasteEnable', msg.args[0]):
paste += line + "\n"
if not line.strip() and not self.stopped[msg.args[0]]: