changeset 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 06a72c643460
children e9a3fe655dd9
files th_config.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
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;
                     }