summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Lachowicz <domlachowicz@gmail.com>2007-01-09 17:12:56 +0000
committerDom Lachowicz <doml@src.gnome.org>2007-01-09 17:12:56 +0000
commitfae536e2c9ee18a81472f658a45e628a6b288682 (patch)
tree243eae184a01c7c28b4282a5ee2e4d14e6480df4
parent8bd67a9630e9997126ac2a1cc272a97ec39dd947 (diff)
downloadlibcroco-fae536e2c9ee18a81472f658a45e628a6b288682.tar.gz
a bug in the class selector code, where it would no\ t require whitespace
2007-01-09 Dom Lachowicz <domlachowicz@gmail.com> * src/cr-sel-eng.c: a bug in the class selector code, where it would no\ t require whitespace before the class in a class attribute with multiple classe\ s. svn path=/trunk/; revision=308
-rw-r--r--ChangeLog4
-rw-r--r--src/cr-sel-eng.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 053f1b2..56ccd81 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
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.
+
+2007-01-09 Dom Lachowicz <domlachowicz@gmail.com>
+
* src/cr-fonts.h: gives syntax errors when included twice
* src/cr-fonts.c: the return value of cr_font_family_prepend()
should be "the font family list", not CR_OK which is the same as NULL.
diff --git a/src/cr-sel-eng.c b/src/cr-sel-eng.c
index c839908..5b72e09 100644
--- a/src/cr-sel-eng.c
+++ b/src/cr-sel-eng.c
@@ -235,6 +235,10 @@ class_add_sel_matches_node (CRAdditionalSel * a_add_sel, xmlNode * a_node)
if ((cur && !*cur)
|| cr_utils_is_white_space (*cur) == TRUE)
result = TRUE;
+ } else { /* if it doesn't match, */
+ /* then skip to next whitespace character to try again */
+ while (cur && *cur && !(cr_utils_is_white_space(*cur) == TRUE))
+ cur++;
}
if (cur && !*cur)
break ;