remove \x03 from ends of tdf lines

This commit is contained in:
Gordon Shumway 2019-04-20 02:20:08 -04:00 committed by GitHub
parent e308394078
commit ba644c5914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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():