aboutsummaryrefslogtreecommitdiffstats
path: root/storage_xml.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2012-06-05 21:19:56 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2012-06-05 21:19:56 +0100
commit222b440e3d85e4a45a47f79f017ff53dbcb78276 (patch)
treef4d38da511ac4a013314bbd3bb47139e247df670 /storage_xml.c
parentd219296cacb644eccbbb8bbd58d02eaa89904c74 (diff)
Add xt_to_string_i() and use it to get indentation back in saved settings.
Also, use it in xt_print() instead of replicating most of xt_to_string() in it. This changed four-space indents into tabs but oh well, we'll live.
Diffstat (limited to 'storage_xml.c')
-rw-r--r--storage_xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage_xml.c b/storage_xml.c
index 29d31c25..b740dd8f 100644
--- a/storage_xml.c
+++ b/storage_xml.c
@@ -372,7 +372,7 @@ static storage_status_t xml_save( irc_t *irc, int overwrite )
}
tree = xml_generate( irc );
- xml = xt_to_string( tree );
+ xml = xt_to_string_i( tree );
len = strlen( xml );
if( write( fd, xml, len ) != len ||
fsync( fd ) != 0 || /* #559 */