blank line between tdf words

This commit is contained in:
Gordon Shumway 2019-04-19 22:59:14 -04:00 committed by GitHub
parent 7313cdd98e
commit c573828d5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -738,12 +738,14 @@ class ASCII(callbacks.Plugin):
irc.reply("Error. Have you installed tdfiglet? https://github.com/tat3r/tdfiglet")
return
paste = ""
output = output.decode().replace('\r\r\n', '\r\n').strip('\r\n')
for line in output.splitlines():
line = line.decode()
if self.registryValue('pasteEnable', msg.args[0]):
paste += line + "\n"
if line.strip():
if not line.strip():
#time.sleep(delay)
irc.reply('\xa0', prefixNick = False, noLengthCheck=True)
else:
irc.reply(line, prefixNick = False, noLengthCheck=True)
if self.registryValue('pasteEnable', msg.args[0]):
try: