RTF Input: Don't eat up the space after \u escaped characters

This commit is contained in:
Kovid Goyal 2010-02-04 09:10:01 -07:00
parent a0ea14b5e9
commit 96ac81c342

View File

@ -72,7 +72,7 @@ class Tokenize:
return line
def __compile_expressions(self):
self.__ms_hex_exp = re.compile(r"\\\'(..)")
self.__utf_exp = re.compile(r"\\u(-?\d{3,6}) {0,1}")
self.__utf_exp = re.compile(r"\\u(-?\d{3,6})")
self.__splitexp = re.compile(r"(\\[\\{}]|{|}|\\[^\s\\{}&]+(?:\s)?)")
self.__par_exp = re.compile(r'\\$')
self.__mixed_exp = re.compile(r"(\\[a-zA-Z]+\d+)(\D+)")