Mercurial > hg > nnchat
changeset 356:e694c02d6982
Make saved configuration files a bit more readable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 23 Jun 2011 08:59:50 +0300 |
parents | ba2aa110755b |
children | 2aef8606539e |
files | th_config.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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; }