From b1258b27471ebd7a8b185c1a9ec24f7de3de9d23 Mon Sep 17 00:00:00 2001 From: Laine Stump Date: Wed, 5 Mar 2014 13:55:51 +0200 Subject: [PATCH] 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. --- src/conf/network_conf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.47.2