From b54d472fc651db51c576b4e4a6fd24c2a4ee4e69 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 2 Jan 2009 14:19:34 +0000 Subject: [PATCH] Hack fix for length of unicode marked-up text svn: r11559 --- src/DataViews/GrampletView.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DataViews/GrampletView.py b/src/DataViews/GrampletView.py index 78df29be7..92dd7bb5b 100644 --- a/src/DataViews/GrampletView.py +++ b/src/DataViews/GrampletView.py @@ -682,7 +682,7 @@ class GuiGramplet: while i < len(text): if ord(text[i]) > 126: t = 0 - while ord(text[i]) > 126: + while ord(text[i]) > 126 and i < len(text): i += 1 t += 1 r += t/2