From: Laine Stump Date: Wed, 5 Mar 2014 11:55:51 +0000 (+0200) Subject: conf: eliminate hardcoded indent from network xml X-Git-Tag: v1.2.3-rc1~221 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1258b27471ebd7a8b185c1a9ec24f7de3de9d23;p=thirdparty%2Flibvirt.git conf: eliminate hardcoded indent from network xml This was very simple, since the only place that had hardcoded indentation was a few items in the network status xml. --- diff --git a/src/conf/network_conf.c b/src/conf/network_conf.c index a73fbd661b..9be06d3ead 100644 --- a/src/conf/network_conf.c +++ b/src/conf/network_conf.c @@ -2797,17 +2797,17 @@ virNetworkObjFormat(virNetworkObjPtr net, goto no_memory; virBufferAddLit(&buf, "\n"); - virBufferAsprintf(&buf, " \n", class_id); - virBufferAsprintf(&buf, " \n", net->floor_sum); + virBufferAdjustIndent(&buf, 2); + virBufferAsprintf(&buf, "\n", class_id); + virBufferAsprintf(&buf, "\n", net->floor_sum); VIR_FREE(class_id); for (i = 0; i < VIR_NETWORK_TAINT_LAST; i++) { if (net->taint & (1 << i)) - virBufferAsprintf(&buf, " \n", + virBufferAsprintf(&buf, "\n", virNetworkTaintTypeToString(i)); } - virBufferAdjustIndent(&buf, 2); if (virNetworkDefFormatBuf(&buf, net->def, flags) < 0) goto error;