fix index out of bounds
This commit is contained in:
parent
4f0c2e2f18
commit
4ad781e541
@ -23,7 +23,7 @@ def greentext(text, esc):
|
|||||||
f = False
|
f = False
|
||||||
for line in text.split('\n'):
|
for line in text.split('\n'):
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
if len(line) == 0:
|
if len(line) < 1:
|
||||||
continue
|
continue
|
||||||
if line[0] == '>' and line[1] != '>':
|
if line[0] == '>' and line[1] != '>':
|
||||||
return_text += '<span class="greentext">%s </span>' % esc ( line ) + '\n'
|
return_text += '<span class="greentext">%s </span>' % esc ( line ) + '\n'
|
||||||
|
Reference in New Issue
Block a user