This commit is contained in:
Mattias Andrée 2012-11-03 07:12:28 +01:00
parent fa4e463073
commit 055b28e8dc
2 changed files with 2 additions and 2 deletions

View file

@ -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:]

View file

@ -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