diff options
author | Benjamin Dauvergne <feanor@tol-eressea.org> | 2007-01-09 21:48:52 +0000 |
---|---|---|
committer | Dom Lachowicz <doml@src.gnome.org> | 2007-01-09 21:48:52 +0000 |
commit | 591ca88d3d2780d869ebc444480b584a15c5bd97 (patch) | |
tree | 35e1d4c87410770ad67399d42f4d036faa873051 /src | |
parent | fae536e2c9ee18a81472f658a45e628a6b288682 (diff) | |
download | libcroco-591ca88d3d2780d869ebc444480b584a15c5bd97.tar.gz |
Bug 314831 - Escapes not recognized
2007-01-09 Benjamin Dauvergne <feanor@tol-eressea.org>
* src/cr-tknzr.c: Bug 314831 - Escapes not recognized
svn path=/trunk/; revision=309
Diffstat (limited to 'src')
-rw-r--r-- | src/cr-tknzr.c | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/src/cr-tknzr.c b/src/cr-tknzr.c index 158a4ec..64924ed 100644 --- a/src/cr-tknzr.c +++ b/src/cr-tknzr.c @@ -578,34 +578,11 @@ cr_tknzr_parse_unicode_escape (CRTknzr * a_this, PEEK_NEXT_CHAR (a_this, &cur_char); } - if (occur == 5) { - /* - *the unicode escape is 6 digit length - */ - - /* - *parse one space that may - *appear just after the unicode - *escape. - */ - cr_tknzr_parse_w (a_this, &tmp_char_ptr1, - &tmp_char_ptr2, NULL); - status = CR_OK; - } else { - /* - *The unicode escape is less than - *6 digit length. The character - *that comes right after the escape - *must be a white space. - */ - status = cr_tknzr_parse_w (a_this, &tmp_char_ptr1, - &tmp_char_ptr2, NULL); - } - - if (status == CR_OK) { - *a_unicode = unicode; - return CR_OK; - } + /* Eat a whitespace if possible. */ + cr_tknzr_parse_w (a_this, &tmp_char_ptr1, + &tmp_char_ptr2, NULL); + *a_unicode = unicode; + return CR_OK; error: /* |