comparison 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
comparison
equal deleted inserted replaced
355:ba2aa110755b 356:e694c02d6982
666 666
667 while (node != NULL) { 667 while (node != NULL) {
668 if (node->data != NULL) 668 if (node->data != NULL)
669 fprintf(f->file, "\"%s\"", (char *) node->data); 669 fprintf(f->file, "\"%s\"", (char *) node->data);
670 670
671 if (--n > 0) 671 if (--n > 0) {
672 fprintf(f->file, ", "); 672 fprintf(f->file, ",\n");
673 673 th_print_indent(f, nesting);
674 }
674 node = node->next; 675 node = node->next;
675 } 676 }
676 677
677 if (fprintf(f->file, "\n") < 0) 678 if (fprintf(f->file, "\n") < 0)
678 return -3; 679 return -3;