summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Dauvergne <feanor@tol-eressea.org>2007-01-09 21:48:52 +0000
committerDom Lachowicz <doml@src.gnome.org>2007-01-09 21:48:52 +0000
commit591ca88d3d2780d869ebc444480b584a15c5bd97 (patch)
tree35e1d4c87410770ad67399d42f4d036faa873051
parentfae536e2c9ee18a81472f658a45e628a6b288682 (diff)
downloadlibcroco-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
-rw-r--r--ChangeLog4
-rw-r--r--src/cr-tknzr.c33
2 files changed, 9 insertions, 28 deletions
diff --git a/ChangeLog b/ChangeLog
index 56ccd81..1d1aa74 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-01-09 Benjamin Dauvergne <feanor@tol-eressea.org>
+
+ * src/cr-tknzr.c: Bug 314831 - Escapes not recognized
+
2007-01-09 Dom Lachowicz <domlachowicz@gmail.com>
* src/cr-sel-eng.c: a bug in the class selector code, where it would not require whitespace before the class in a class attribute with multiple classes.
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:
/*