diff src/layout_util.c @ 1461:e015b6573d36

improved config file formatting
author nadvornik
date Thu, 19 Mar 2009 22:12:14 +0000
parents d7a6fb7a90dd
children 25168240a247
line wrap: on
line diff
--- a/src/layout_util.c	Tue Mar 17 23:03:07 2009 +0000
+++ b/src/layout_util.c	Thu Mar 19 22:12:14 2009 +0000
@@ -1819,18 +1819,18 @@
 void layout_toolbar_write_config(LayoutWindow *lw, GString *outstr, gint indent)
 {
 	GList *work = lw->toolbar_actions;
-	WRITE_STRING("<toolbar>\n");
+	WRITE_NL(); WRITE_STRING("<toolbar>");
 	indent++;
 	while (work)
 		{
 		gchar *action = work->data;
 		work = work->next;
-		WRITE_STRING("<toolitem\n");
+		WRITE_NL(); WRITE_STRING("<toolitem ");
 		write_char_option(outstr, indent + 1, "action", action);
-		WRITE_STRING("/>\n");
+		WRITE_STRING("/>");
 		}
 	indent--;
-	WRITE_STRING("</toolbar>\n");
+	WRITE_NL(); WRITE_STRING("</toolbar>");
 }
 
 void layout_toolbar_add_from_config(LayoutWindow *lw, const gchar **attribute_names, const gchar **attribute_values)