From 2478b469a711479b64e2671eb92aa90f16272b7f Mon Sep 17 00:00:00 2001 From: Blake DeMarcy Date: Thu, 13 Apr 2017 16:29:01 -0500 Subject: [PATCH] hotfix reeeeeeeeeee --- clients/urwid/main.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/clients/urwid/main.py b/clients/urwid/main.py index 455254a..9549907 100644 --- a/clients/urwid/main.py +++ b/clients/urwid/main.py @@ -1118,8 +1118,12 @@ class MessageBody(urwid.Text): result.append((directive, body)) elif directive == "linequote": - if directive != last_directive and result[-1][-1][-1] != "\n": - result.append(("default", "\n")) + try: + # this /naughty/ hack is supposed to keep spacing consistent....needs tweaking + if directive != last_directive and result[-1][-1][-1] != "\n": + result.append(("default", "\n")) + except IndexError: + pass result.append(("3", "%s\n" % body.strip())) elif directive == "quote":