]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: eliminate hardcoded indentation in nwfilter xml
authorLaine Stump <laine@laine.org>
Wed, 5 Mar 2014 15:04:15 +0000 (17:04 +0200)
committerLaine Stump <laine@laine.org>
Fri, 14 Mar 2014 04:40:39 +0000 (22:40 -0600)
commitd3679928b1331874929f9fbe18d5ddb92851c993
treeb923087513add6a6745911013f6f0057d650ae49
parent257e62dfee2cec94e907f33cecf0fb69970c9761
conf: eliminate hardcoded indentation in nwfilter xml

This file was using multiple virBuffers, inserting the contents of
buf3 into buf2, then inserting the contents of buf2 into buf1, rather
than the more conventional method of just passing around a single
virBufferPtr and streaming everything into that single buffer. This
was unnecessary, and also made it more difficult to make indentation
relative, because when you insert a string into a buffer, the
indentation of the buffer is only applied once at the beginning of the
string, *not* each time a newline is encountered in the string.
src/conf/nwfilter_conf.c
src/conf/nwfilter_params.c