index.py
changeset 15 707ddd7a7912
parent 13 a0cb32f3de3d
child 16 9234f5ae765b
--- a/index.py	Tue May 05 19:37:49 2009 +0300
+++ b/index.py	Tue May 05 19:39:44 2009 +0300
@@ -131,6 +131,9 @@
         chars = randomize(chars)
     
     for line, char, color in itertools.izip_longest(text, chars, line_colors, fillvalue=None) :
+        if not line :
+            continue
+
         # pick position to place char
         pos = random.randint(1, len(line) - 1)