better tdf spacing
This commit is contained in:
parent
693362a041
commit
5af0ee9669
|
|
@ -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]]:
|
||||
|
|
|
|||
Loading…
Reference in New Issue