diff --git a/src/BaseDoc.py b/src/BaseDoc.py index 1ae9f0af3..8cf0b3c9f 100644 --- a/src/BaseDoc.py +++ b/src/BaseDoc.py @@ -1707,7 +1707,7 @@ class TextDoc: #make sure text can split splitpos = text[start:pos].find(split) while splitpos <> -1: - otext += self.ESCAPE_FUNC()(text[start:splitpos]) + otext += self.ESCAPE_FUNC()(text[start:start+splitpos]) #close open tags opentags.reverse() for opentag in opentags: