diff --git a/src/DataViews/GrampletView.py b/src/DataViews/GrampletView.py index 92dd7bb5b..f31d569e9 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 and i < len(text): + while i < len(text) and ord(text[i]) > 126: i += 1 t += 1 r += t/2