From 5bd5a98ba9095eefafce3b3b8e65e040589ccd27 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Thu, 20 Aug 2009 13:08:49 +0000 Subject: [PATCH] unicode text must be sliced correctly. svn: r13091 --- src/BaseDoc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BaseDoc.py b/src/BaseDoc.py index 17192e0c9..b1513ec72 100644 --- a/src/BaseDoc.py +++ b/src/BaseDoc.py @@ -1677,6 +1677,8 @@ class TextDoc(object): is text here not overwrite this method if this complexity is not needed. """ + #unicode text most be sliced correctly + text=unicode(text) FIRST = 0 LAST = 1 tagspos = {}