Fix #9343 (Convert from rtf - bug?)

This commit is contained in:
Kovid Goyal 2011-03-09 15:09:16 -07:00
parent f20c34b6f6
commit c93547878c

View File

@ -46,7 +46,8 @@ class Tokenize:
def __remove_uc_chars(self, startchar, token): def __remove_uc_chars(self, startchar, token):
for i in xrange(startchar, len(token)): for i in xrange(startchar, len(token)):
if token[i] == " ": #handle the case of an uc char with a terminating blank before ansi char
if token[i] == " " and self.__uc_char:
continue continue
elif self.__uc_char: elif self.__uc_char:
self.__uc_char -= 1 self.__uc_char -= 1