From 055b28e8dc974b9e4e2291c65c38edb5b5de970d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Sat, 3 Nov 2012 07:12:28 +0100 Subject: [PATCH] derp --- ponysay-tool.py | 2 +- ponysay.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ponysay-tool.py b/ponysay-tool.py index c08a8535..b7e3f444 100755 --- a/ponysay-tool.py +++ b/ponysay-tool.py @@ -329,7 +329,7 @@ class PonysayTool(): test = key for c in 'ABCDEFGHIJKLMN OPQRSTUVWXYZ': test = test.replace(c, '') - if len(test) == 0: + if (len(test) == 0) and (len(key.replace(' ', '')) > 0): key = key.strip(' ') value = line.replace('\t', ' ') value = value[value.find(': ') + 2:] diff --git a/ponysay.py b/ponysay.py index fff42dc0..cc2de9e5 100755 --- a/ponysay.py +++ b/ponysay.py @@ -1860,7 +1860,7 @@ class Backend(): test = key for c in 'ABCDEFGHIJKLMN OPQRSTUVWXYZ': test = test.replace(c, '') - if len(test) == 0: + if (len(test) == 0) and (len(key.replace(' ', '')) > 0): value = line[sep + 1:].strip() line = '\033[1m%s\033[21m: %s\n' % (key.strip(), value) tags += line