]> git.ipfire.org Git - thirdparty/nftables.git/commit
rule: don't print trailing statement whitespace
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Wed, 23 Mar 2016 12:51:33 +0000 (13:51 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 29 Mar 2016 11:19:24 +0000 (13:19 +0200)
commit89e3001be44aa2f25e51b139f044328230cbb098
tree978bcc40823900d6632090ddf77d3d41bcc521a3
parent7fa2b0534745f53881ec74a0a73d4f870ea4b026
rule: don't print trailing statement whitespace

This trailing whitespace is annoying when working with the textual output
of nft.

Before:

table t {
chain c {
ct state new
    ^
}
}

After:

table t {
chain c {
ct state new
}
}

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/rule.c