unicode text must be sliced correctly.

svn: r13091
This commit is contained in:
Peter Landgren 2009-08-20 13:08:49 +00:00
parent 26dd3db5bc
commit 5bd5a98ba9

View File

@ -1677,6 +1677,8 @@ class TextDoc(object):
is <b>text</b><i><b> here</b> not</i>
overwrite this method if this complexity is not needed.
"""
#unicode text most be sliced correctly
text=unicode(text)
FIRST = 0
LAST = 1
tagspos = {}