diff th_config.c @ 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 0db02b8d2d11
children afbc3bfd3e03
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;
                     }