mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 20:38:00 +01: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
|
test = key
|
||||||
for c in 'ABCDEFGHIJKLMN OPQRSTUVWXYZ':
|
for c in 'ABCDEFGHIJKLMN OPQRSTUVWXYZ':
|
||||||
test = test.replace(c, '')
|
test = test.replace(c, '')
|
||||||
if len(test) == 0:
|
if (len(test) == 0) and (len(key.replace(' ', '')) > 0):
|
||||||
key = key.strip(' ')
|
key = key.strip(' ')
|
||||||
value = line.replace('\t', ' ')
|
value = line.replace('\t', ' ')
|
||||||
value = value[value.find(': ') + 2:]
|
value = value[value.find(': ') + 2:]
|
||||||
|
|
|
@ -1860,7 +1860,7 @@ class Backend():
|
||||||
test = key
|
test = key
|
||||||
for c in 'ABCDEFGHIJKLMN OPQRSTUVWXYZ':
|
for c in 'ABCDEFGHIJKLMN OPQRSTUVWXYZ':
|
||||||
test = test.replace(c, '')
|
test = test.replace(c, '')
|
||||||
if len(test) == 0:
|
if (len(test) == 0) and (len(key.replace(' ', '')) > 0):
|
||||||
value = line[sep + 1:].strip()
|
value = line[sep + 1:].strip()
|
||||||
line = '\033[1m%s\033[21m: %s\n' % (key.strip(), value)
|
line = '\033[1m%s\033[21m: %s\n' % (key.strip(), value)
|
||||||
tags += line
|
tags += line
|
||||||
|
|
Loading…
Reference in a new issue