summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2005-01-05 20:22:57 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2005-01-05 20:22:57 +0000
commitfbe6486e0bb47cc61a19651f2a7ed58116d0da9f (patch)
tree4ed538ba7c7e9e2dd81cc0b572a6b96657fcb713
parenta016a1053984b5b266baa1f031056fdba2010e38 (diff)
downloadnetsurf-fbe6486e0bb47cc61a19651f2a7ed58116d0da9f.tar.gz
netsurf-fbe6486e0bb47cc61a19651f2a7ed58116d0da9f.tar.bz2
[project @ 2005-01-05 20:22:57 by jmb]
Fix syntax error reporting svn path=/import/netsurf/; revision=1435
-rw-r--r--css/css.c5
1 files 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, &param);
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, &param);
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) {