summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rule.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rule.c b/src/rule.c
index 85987b9b..0ed77941 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -385,14 +385,15 @@ void rule_print(const struct rule *rule)
list_for_each_entry(stmt, &rule->stmts, list) {
stmt->ops->print(stmt);
- printf(" ");
+ if (!list_is_last(&stmt->list, &rule->stmts))
+ printf(" ");
}
if (rule->comment)
- printf("comment \"%s\" ", rule->comment);
+ printf(" comment \"%s\"", rule->comment);
if (handle_output > 0)
- printf("# handle %" PRIu64, rule->handle.handle);
+ printf(" # handle %" PRIu64, rule->handle.handle);
}
struct scope *scope_init(struct scope *scope, const struct scope *parent)