diff src/bar_exif.c @ 1461:e015b6573d36

improved config file formatting
author nadvornik
date Thu, 19 Mar 2009 22:12:14 +0000
parents 8c7bb5c1fb9c
children 1b3751ac4743
line wrap: on
line diff
--- a/src/bar_exif.c	Tue Mar 17 23:03:07 2009 +0000
+++ b/src/bar_exif.c	Thu Mar 19 22:12:14 2009 +0000
@@ -636,14 +636,12 @@
 	ExifEntry *ee = g_object_get_data(G_OBJECT(entry), "entry_data");
 	if (!ee) return;
 
-	WRITE_STRING("<entry\n");
-	indent++;
+	WRITE_NL(); WRITE_STRING("<entry ");
 	WRITE_CHAR(*ee, key);
 	if (!ee->auto_title) WRITE_CHAR(*ee, title);
 	WRITE_BOOL(*ee, if_set);
 	WRITE_BOOL(*ee, editable);
-	indent--;
-	WRITE_STRING("/>\n");
+	WRITE_STRING("/>");
 }
 
 static void bar_pane_exif_write_config(GtkWidget *pane, GString *outstr, gint indent)
@@ -654,12 +652,10 @@
 	ped = g_object_get_data(G_OBJECT(pane), "pane_data");
 	if (!ped) return;
 
-	WRITE_STRING("<pane_exif\n");
-	indent++;
+	WRITE_NL(); WRITE_STRING("<pane_exif ");
 	write_char_option(outstr, indent, "pane.title", gtk_label_get_text(GTK_LABEL(ped->pane.title)));
 	WRITE_BOOL(*ped, pane.expanded);
-	indent--;
-	WRITE_STRING(">\n");
+	WRITE_STRING(">");
 	indent++;
 	
 	list = gtk_container_get_children(GTK_CONTAINER(ped->vbox));	
@@ -673,7 +669,7 @@
 		}
 	g_list_free(list);
 	indent--;
-	WRITE_STRING("</pane_exif>\n");
+	WRITE_NL(); WRITE_STRING("</pane_exif>");
 }