From 6966e7211a4ebf07418fc214016b57be64e0e4d5 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Thu, 20 Aug 2009 12:40:38 +0000 Subject: [PATCH] unicode text must be sliced correctly. svn: r13089 --- src/gen/plug/docbackend/docbackend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gen/plug/docbackend/docbackend.py b/src/gen/plug/docbackend/docbackend.py index 08df27f31..51856192c 100644 --- a/src/gen/plug/docbackend/docbackend.py +++ b/src/gen/plug/docbackend/docbackend.py @@ -278,6 +278,8 @@ class DocBackend(object): is text here not overwrite this method if this complexity is not needed. """ + #unicode text must be sliced correctly + text = unicode(text) FIRST = 0 LAST = 1 tagspos = {}