mirror of
https://github.com/erkin/ponysay
synced 2024-11-15 08:07:10 +00:00
derp
This commit is contained in:
parent
fa4e463073
commit
055b28e8dc
2 changed files with 2 additions and 2 deletions
|
@ -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:]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue