Fix long columns of text that span pages

svn: r23453
This commit is contained in:
Doug Blank 2013-11-06 01:59:45 +00:00 committed by John Ralls
parent a4c17b6573
commit dd818829bd

View File

@ -665,7 +665,9 @@ class GtkDocParagraph(GtkDocBaseElement):
markstarts = [] markstarts = []
#index is in bytecode in the text.. !! #index is in bytecode in the text.. !!
while pos < index: while pos < index:
char = oldtext[realpos] if realpos >= len(oldtext):
break
char = oldtext[realpos]
if char == '<' and oldtext[realpos+1] != '/': if char == '<' and oldtext[realpos+1] != '/':
# a markup starts # a markup starts
end = realpos + oldtext[realpos:].find('>') + 1 end = realpos + oldtext[realpos:].find('>') + 1