summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-07-15 10:00:54 +0530
committerRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-08-01 21:44:33 +0530
commit9e698caff63d13a78923ea5eb574cc6bd4acf766 (patch)
treeb31d5b9dba4916ec502bac2c63190a5fa2639549
parent18e9a934cec57fa756086b0d789adb6b83fcee34 (diff)
downloadlibhubbub-9e698caff63d13a78923ea5eb574cc6bd4acf766.tar.gz
libhubbub-9e698caff63d13a78923ea5eb574cc6bd4acf766.tar.bz2
fixed small space errors in printing of nodes
-rw-r--r--test/tree2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tree2.c b/test/tree2.c
index 15e9901..e769221 100644
--- a/test/tree2.c
+++ b/test/tree2.c
@@ -856,9 +856,9 @@ static void node_print(buf_t *buf, node_t *node, unsigned depth)
if (node->data.doctype.public_id) {
buf_add(buf, " \"");
buf_add(buf, node->data.doctype.public_id);
- buf_add(buf, "\" ");
+ buf_add(buf, "\"");
} else {
- buf_add(buf, "\"\" ");
+ buf_add(buf, " \"\"");
}
if (node->data.doctype.system_id) {
@@ -866,7 +866,7 @@ static void node_print(buf_t *buf, node_t *node, unsigned depth)
buf_add(buf, node->data.doctype.system_id);
buf_add(buf, "\"");
} else {
- buf_add(buf, "\"\"");
+ buf_add(buf, " \"\"");
}
}