From fbe6486e0bb47cc61a19651f2a7ed58116d0da9f Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 5 Jan 2005 20:22:57 +0000 Subject: [project @ 2005-01-05 20:22:57 by jmb] Fix syntax error reporting svn path=/import/netsurf/; revision=1435 --- css/css.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/css/css.c b/css/css.c index a4bb10f47..c932b198a 100644 --- a/css/css.c +++ b/css/css.c @@ -403,7 +403,7 @@ bool css_convert(struct content *c, int width, int height) token_data.length = current - token_text; css_parser_(parser, token, token_data, ¶m); if (param.syntax_error) { - LOG(("syntax error near offset %ti (%s)", + LOG(("syntax error near offset %i (%s)", token_text - source_data, c->url)); param.syntax_error = false; @@ -496,6 +496,7 @@ struct css_node * css_new_node(struct content *stylesheet, node->style = 0; node->specificity = 0; node->stylesheet = stylesheet; + return node; } @@ -1217,7 +1218,7 @@ void css_parse_property_list(struct content *c, struct css_style * style, token_data.length = current - token_text; css_parser_(parser, token, token_data, ¶m); if (param.syntax_error) { - LOG(("syntax error near offset %ti", + LOG(("syntax error near offset %i", token_text - source_data)); param.syntax_error = false; } else if (param.memory_error) { -- cgit v1.2.3