diff options
author | Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com> | 2013-04-19 01:37:23 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-04-19 01:55:20 +0200 |
commit | b0f2066ac0ebf3c5151ae2ece231b2317dfa3a5f (patch) | |
tree | a7541ffa730d8b0f72f2d7a05ee6c24bf9c14eff /src/table.c | |
parent | 605e56925beeda0d184e24d6d923f973a336bcb7 (diff) |
src: remove trailing newlines, tabs and spaces from XML format
Delete all \n and \t from XML output, any reasonable XML viewer
already does the nifty formatting for us.
Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/table.c')
-rw-r--r-- | src/table.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/table.c b/src/table.c index 33fb26c..c963e6e 100644 --- a/src/table.c +++ b/src/table.c @@ -185,13 +185,13 @@ EXPORT_SYMBOL(nft_table_nlmsg_parse); static int nft_table_snprintf_xml(char *buf, size_t size, struct nft_table *t) { return snprintf(buf, size, - "<table name=\"%s\" >\n" - "\t<properties>\n" - "\t\t<family>%u</family>\n" - "\t\t<flags>%d</flags>\n" - "\t\t<table_flags>%d</table_flags>\n" - "\t</properties>\n" - "</table>\n" , + "<table name=\"%s\">" + "<properties>" + "<family>%u</family>" + "<flags>%d</flags>" + "<table_flags>%d</table_flags>" + "</properties>" + "</table>" , t->name, t->family, t->flags, t->table_flags); } |