Archived
1
0

fix index out of bounds

This commit is contained in:
Jeff Becker 2016-11-12 13:06:40 -05:00
parent 4f0c2e2f18
commit 4ad781e541
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -23,7 +23,7 @@ def greentext(text, esc):
f = False
for line in text.split('\n'):
line = line.strip()
if len(line) == 0:
if len(line) < 1:
continue
if line[0] == '>' and line[1] != '>':
return_text += '<span class="greentext">%s </span>' % esc ( line ) + '\n'