xml-formatter: Indent formatted files

This commit is contained in:
Thibault Saunier 2013-07-07 22:40:55 -04:00 committed by Mathieu Duponchelle
parent bce084f4fd
commit d3e3871440

View file

@ -945,8 +945,8 @@ _save_layers (GString * str, GESTimeline * timeline)
metas = ges_meta_container_metas_to_string (GES_META_CONTAINER (layer)); metas = ges_meta_container_metas_to_string (GES_META_CONTAINER (layer));
append_escaped (str, append_escaped (str,
g_markup_printf_escaped g_markup_printf_escaped
("<layer priority='%i' properties='%s' metadatas='%s'>\n", priority, (" <layer priority='%i' properties='%s' metadatas='%s'>\n",
properties, metas)); priority, properties, metas));
g_free (properties); g_free (properties);
g_free (metas); g_free (metas);
@ -997,6 +997,7 @@ _save_layers (GString * str, GESTimeline * timeline)
g_list_free_full (tracks, gst_object_unref); g_list_free_full (tracks, gst_object_unref);
g_string_append (str, " </clip>\n"); g_string_append (str, " </clip>\n");
nbclips++; nbclips++;
} }
g_string_append (str, " </layer>\n"); g_string_append (str, " </layer>\n");
@ -1014,8 +1015,8 @@ _save_timeline (GString * str, GESTimeline * timeline)
metas = ges_meta_container_metas_to_string (GES_META_CONTAINER (timeline)); metas = ges_meta_container_metas_to_string (GES_META_CONTAINER (timeline));
append_escaped (str, append_escaped (str,
g_markup_printf_escaped ("<timeline properties='%s' metadatas='%s'>\n", g_markup_printf_escaped
properties, metas)); (" <timeline properties='%s' metadatas='%s'>\n", properties, metas));
_save_tracks (str, timeline); _save_tracks (str, timeline);
_save_layers (str, timeline); _save_layers (str, timeline);
@ -1035,7 +1036,8 @@ _save_stream_profiles (GString * str, GstEncodingProfile * sprof,
const gchar *preset, *preset_name, *name, *description; const gchar *preset, *preset_name, *name, *description;
append_escaped (str, append_escaped (str,
g_markup_printf_escaped ("<stream-profile parent='%s' id='%d' type='%s' " g_markup_printf_escaped
(" <stream-profile parent='%s' id='%d' type='%s' "
"presence='%d' ", profilename, id, "presence='%d' ", profilename, id,
gst_encoding_profile_get_type_nick (sprof), gst_encoding_profile_get_type_nick (sprof),
gst_encoding_profile_get_presence (sprof))); gst_encoding_profile_get_presence (sprof)));
@ -1105,8 +1107,8 @@ _save_encoding_profiles (GString * str, GESProject * project)
append_escaped (str, append_escaped (str,
g_markup_printf_escaped g_markup_printf_escaped
("<encoding-profile name='%s' description='%s' type='%s' ", profname, (" <encoding-profile name='%s' description='%s' type='%s' ",
profdesc, proftype)); profname, profdesc, proftype));
if (profpreset) if (profpreset)
append_escaped (str, g_markup_printf_escaped ("preset='%s' ", append_escaped (str, g_markup_printf_escaped ("preset='%s' ",
@ -1138,7 +1140,8 @@ _save_encoding_profiles (GString * str, GESProject * project)
_save_stream_profiles (str, sprof, profname, i); _save_stream_profiles (str, sprof, profname, i);
} }
} }
append_escaped (str, g_markup_printf_escaped ("</encoding-profile>\n")); append_escaped (str,
g_markup_printf_escaped (" </encoding-profile>\n"));
} }
} }