From 4ad781e541c0ba55cfec776363501c88bfc24feb Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 12 Nov 2016 13:06:40 -0500 Subject: [PATCH] fix index out of bounds --- .../django/nntpchan/nntpchan/frontend/templatetags/chanup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/frontends/django/nntpchan/nntpchan/frontend/templatetags/chanup.py b/contrib/frontends/django/nntpchan/nntpchan/frontend/templatetags/chanup.py index d0461ea..c7a3bcc 100644 --- a/contrib/frontends/django/nntpchan/nntpchan/frontend/templatetags/chanup.py +++ b/contrib/frontends/django/nntpchan/nntpchan/frontend/templatetags/chanup.py @@ -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 += '%s ' % esc ( line ) + '\n'