author | Tero Marttila <terom@fixme.fi> |
Tue, 05 May 2009 19:39:44 +0300 | |
changeset 15 | 707ddd7a7912 |
parent 14 | e30e33081480 |
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)