Mercurial > hg > th-libs
diff th_config.c @ 34:8dac45860fc7
Prettify writing of string lists in config files.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 23 Jun 2011 11:07:16 +0300 |
parents | 1ac2449c4df7 |
children | 7851f704d499 |
line wrap: on
line diff
--- a/th_config.c Sat Jun 11 12:52:57 2011 +0300 +++ b/th_config.c Thu Jun 23 11:07:16 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; }