# HG changeset patch # User Matti Hamalainen # Date 1308808790 -10800 # Node ID e694c02d69825b01a615895cf8634296bf996cc6 # Parent ba2aa110755b68bc17728084b51de68ee6ab24a6 Make saved configuration files a bit more readable. diff -r ba2aa110755b -r e694c02d6982 th_config.c --- a/th_config.c Thu Jun 23 08:48:23 2011 +0300 +++ b/th_config.c Thu Jun 23 08:59:50 2011 +0300 @@ -668,9 +668,10 @@ if (node->data != NULL) fprintf(f->file, "\"%s\"", (char *) node->data); - if (--n > 0) - fprintf(f->file, ", "); - + if (--n > 0) { + fprintf(f->file, ",\n"); + th_print_indent(f, nesting); + } node = node->next; }