From dd818829bd37c512907f2ded61907504e9e58224 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Wed, 6 Nov 2013 01:59:45 +0000 Subject: [PATCH] Fix long columns of text that span pages svn: r23453 --- gramps/plugins/lib/libcairodoc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/lib/libcairodoc.py b/gramps/plugins/lib/libcairodoc.py index fe02a2acc..203aa8bd5 100644 --- a/gramps/plugins/lib/libcairodoc.py +++ b/gramps/plugins/lib/libcairodoc.py @@ -665,7 +665,9 @@ class GtkDocParagraph(GtkDocBaseElement): markstarts = [] #index is in bytecode in the text.. !! while pos < index: - char = oldtext[realpos] + if realpos >= len(oldtext): + break + char = oldtext[realpos] if char == '<' and oldtext[realpos+1] != '/': # a markup starts end = realpos + oldtext[realpos:].find('>') + 1