summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-23 22:26:38 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-23 22:26:38 +0000
commit71f77a3f2e66daac58ee12d85b195e8ff52b2bf8 (patch)
treefd2c81a2eb097293c80f65e500efeedf0951640e
parent87ce1930f7a99080eabc4e151ca7850e4c6e64bc (diff)
downloadlibcss-71f77a3f2e66daac58ee12d85b195e8ff52b2bf8.tar.gz
libcss-71f77a3f2e66daac58ee12d85b195e8ff52b2bf8.tar.bz2
Fix counter-increment dumping
svn path=/trunk/libcss/; revision=6197
-rw-r--r--test/dump.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/dump.h b/test/dump.h
index 7c8c76d..6bff4aa 100644
--- a/test/dump.h
+++ b/test/dump.h
@@ -1109,7 +1109,7 @@ void dump_bytecode(css_style *style, char **ptr)
*((parserutils_hash_entry **)
bytecode);
ADVANCE(sizeof(he));
- *ptr += sprintf(*ptr, " %.*s ",
+ *ptr += sprintf(*ptr, "%.*s ",
(int) he->len,
(char *) he->data);
fixed val =
@@ -1119,6 +1119,11 @@ void dump_bytecode(css_style *style, char **ptr)
value = *((uint32_t *) bytecode);
ADVANCE(sizeof(value));
+
+ if (value !=
+ COUNTER_INCREMENT_NONE)
+ *ptr += sprintf(*ptr,
+ " ");
}
break;
case COUNTER_INCREMENT_NONE: