diff src/filefilter.c @ 1461:e015b6573d36

improved config file formatting
author nadvornik
date Thu, 19 Mar 2009 22:12:14 +0000
parents 0061979f7f6d
children 1b3751ac4743
line wrap: on
line diff
--- a/src/filefilter.c	Tue Mar 17 23:03:07 2009 +0000
+++ b/src/filefilter.c	Thu Mar 19 22:12:14 2009 +0000
@@ -418,7 +418,7 @@
 {
 	GList *work;
 
-	WRITE_STRING("<filter>\n");
+	WRITE_NL(); WRITE_STRING("<filter>");
 	indent++;
 
 	work = filter_list;
@@ -427,8 +427,7 @@
 		FilterEntry *fe = work->data;
 		work = work->next;
 
-		WRITE_STRING("<file_type\n");
-		indent++;
+		WRITE_NL(); WRITE_STRING("<file_type ");
 		WRITE_CHAR(*fe, key);
 		WRITE_BOOL(*fe, enabled);
 		WRITE_CHAR(*fe, extensions);
@@ -436,11 +435,10 @@
 		WRITE_UINT(*fe, file_class);
 		WRITE_BOOL(*fe, writable);
 		WRITE_BOOL(*fe, allow_sidecar);
-		indent--;
-		WRITE_STRING("/>\n");
+		WRITE_STRING("/>");
 		}
 	indent--;
-	WRITE_STRING("</filter>\n");
+	WRITE_NL(); WRITE_STRING("</filter>");
 }
 
 void filter_load_file_type(const gchar **attribute_names, const gchar **attribute_values)