From c573828d5d456eb665c2bb4484cd19771697fdc5 Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Fri, 19 Apr 2019 22:59:14 -0400 Subject: [PATCH] blank line between tdf words --- ASCII/plugin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index c74fa27..cee0023 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -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: