Skip to contentSkip to conversation

rule: delete extra space in rule indentation

PATCH Superseded Arturo Borrero Gonzalez 2 participants 2 messages Mar 17, 2015 – Mar 18, 2015 netfilter

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rule: delete extra space in rule indentation

Annoying extra space in rule indentation.

---
 src/rule.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/rule.c +2 -2
index 8d76fd0..9403c1e 100644
@@ -237,11 +237,11 @@ void rule_print(const struct rule *rule)
 	const struct stmt *stmt;
 
 	list_for_each_entry(stmt, &rule->stmts, list) {
-		printf(" ");
 		stmt->ops->print(stmt);
+		printf(" ");
 	}
 	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)
#1 lore raw
Quoted 1 line · Arturo Borrero Gonzalez

Annoying extra space in rule indentation.

What "extra space" are you refering to?

Could you include a small proof of it in the description? Thanks.

Quoted 24 lines
---
 src/rule.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/rule.c +2 -2
index 8d76fd0..9403c1e 100644
@@ -237,11 +237,11 @@ void rule_print(const struct rule *rule)
 	const struct stmt *stmt;
 
 	list_for_each_entry(stmt, &rule->stmts, list) {
-		printf(" ");
 		stmt->ops->print(stmt);
+		printf(" ");
 	}
 	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)