diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/cr-sel-eng.c | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -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 ; |