diff options
-rw-r--r-- | ChangeLog | 15 | ||||
-rw-r--r-- | csslint/csslint.c | 1 | ||||
-rw-r--r-- | src/cr-parser.c | 3 | ||||
-rw-r--r-- | src/cr-statement.c | 2 |
4 files changed, 17 insertions, 4 deletions
@@ -1,9 +1,20 @@ 2004-03-03 Dodji Seketeli <dodji@gnome.org> + * csslint/csslint.c: + (cssom_parse) put a '\n' after dumping the sheet on screen. + * src/cr-parser.c: + (cr_parser_parse_page): fixed a small bug in here. + This should fix http://bugzilla.gnome.org/show_bug.cgi?id=136109. + * src/cr-statement.c: + (cr_statement_dump_page): added a white space before dumping + the pseudo part of the @page rule. + +2004-03-03 Dodji Seketeli <dodji@gnome.org> + * csslint/csslint.c: added the support of selectors evaluation in csslint. Now, one can do csslint --evaluate --xml <an xml file> - --author-sheet <a-css-sheet> --xpath <an xpath expression> . - This will show the css properties associated to the xml node(s) + --author-sheet <a-css-sheet> --xpath <an xpath expression>. + This will show the css properties associated to the xml node(s) refered to by the xpath expression. * src/cr-declaration.[ch]: (cr_declaration_dump_one) added this new api entry to dump diff --git a/csslint/csslint.c b/csslint/csslint.c index 87f5811..c0d01c6 100644 --- a/csslint/csslint.c +++ b/csslint/csslint.c @@ -277,6 +277,7 @@ cssom_parse (guchar * a_file_uri) if (status == CR_OK && stylesheet) { cr_stylesheet_dump (stylesheet, stdout) ; + g_print ("\n") ; cr_stylesheet_destroy (stylesheet) ; } cr_om_parser_destroy (parser) ; diff --git a/src/cr-parser.c b/src/cr-parser.c index 07ab488..ba27009 100644 --- a/src/cr-parser.c +++ b/src/cr-parser.c @@ -4591,8 +4591,9 @@ cr_parser_parse_page (CRParser *a_this) /* *try to parse pseudo_page - */ + */ + cr_parser_try_to_skip_spaces_and_comments (a_this) ; status = cr_tknzr_get_next_token (PRIVATE (a_this)->tknzr, &token) ; ENSURE_PARSING_COND (status == CR_OK diff --git a/src/cr-statement.c b/src/cr-statement.c index b8ff481..0eb2359 100644 --- a/src/cr-statement.c +++ b/src/cr-statement.c @@ -734,7 +734,7 @@ cr_statement_dump_page (CRStatement *a_this, FILE *a_fp, gulong a_indent) str = g_strndup (a_this->kind.page_rule->pseudo->str, a_this->kind.page_rule->pseudo->len) ; g_return_if_fail (str) ; - fprintf (a_fp,":%s", str) ; + fprintf (a_fp," :%s", str) ; if (str) { g_free (str) ; |