diff options
author | Dodji Seketeli <dodji@gnome.org> | 2004-02-24 22:49:47 +0000 |
---|---|---|
committer | Dodji Seketeli <dodji@src.gnome.org> | 2004-02-24 22:49:47 +0000 |
commit | 38752450093b0cca9f67a5efb540aacf94ad55cb (patch) | |
tree | 2626484fa19885b48e4e84c873e8938958f4d2a4 /src | |
parent | fd0c8b8631c68dec29e8438a63e2638ef97ddc32 (diff) | |
download | libcroco-38752450093b0cca9f67a5efb540aacf94ad55cb.tar.gz |
fixed a parsing bug reported by David A Knight. This should now properly
2004-02-24 Dodji Seketeli <dodji@gnome.org>
* src/cr-parser.c:
(cr_parser_parse_import): fixed a parsing bug reported
by David A Knight. This should now properly parse
sequences of @import rules that without media parts.
* src/cr-statement.c: (cr_statement_dump_import_rule):
fixed a serialisation bug here.
Diffstat (limited to 'src')
-rw-r--r-- | src/cr-parser.c | 12 | ||||
-rw-r--r-- | src/cr-statement.c | 2 |
2 files changed, 6 insertions, 8 deletions
diff --git a/src/cr-parser.c b/src/cr-parser.c index 55bf6ea..07ab488 100644 --- a/src/cr-parser.c +++ b/src/cr-parser.c @@ -4293,15 +4293,13 @@ cr_parser_parse_import (CRParser *a_this, GList ** a_media_list, medium = NULL ; } - CHECK_PARSING_STATUS (status, FALSE) ; - - READ_NEXT_CHAR (a_this, &cur_char) ; - - ENSURE_PARSING_COND (cur_char == ';') ; - + CHECK_PARSING_STATUS (status, FALSE) ; cr_parser_try_to_skip_spaces_and_comments (a_this) ; } - + cr_parser_try_to_skip_spaces_and_comments (a_this) ; + READ_NEXT_CHAR (a_this, &cur_char) ; + ENSURE_PARSING_COND (cur_char == ';') ; + cr_parser_try_to_skip_spaces_and_comments (a_this) ; okay: cr_parser_clear_errors (a_this) ; PRIVATE (a_this)->state = IMPORT_PARSED_STATE ; diff --git a/src/cr-statement.c b/src/cr-statement.c index a857680..b675826 100644 --- a/src/cr-statement.c +++ b/src/cr-statement.c @@ -850,8 +850,8 @@ cr_statement_dump_import_rule (CRStatement *a_this, FILE *a_fp, } } } - fprintf (a_fp," ;") ; } + fprintf (a_fp," ;") ; } } |