From fae536e2c9ee18a81472f658a45e628a6b288682 Mon Sep 17 00:00:00 2001 From: Dom Lachowicz Date: Tue, 9 Jan 2007 17:12:56 +0000 Subject: a bug in the class selector code, where it would no\ t require whitespace 2007-01-09 Dom Lachowicz * 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 --- ChangeLog | 4 ++++ src/cr-sel-eng.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 053f1b2..56ccd81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-01-09 Dom Lachowicz + + * 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 * src/cr-fonts.h: gives syntax errors when included twice 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 ; -- cgit v1.2.1