From 222b440e3d85e4a45a47f79f017ff53dbcb78276 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 5 Jun 2012 21:19:56 +0100 Subject: 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. --- storage_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storage_xml.c') 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 */ -- cgit v1.2.3