From 61669bd042636df8a8e71aaf67a5e05706b370bc Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 2 Sep 2016 16:24:47 -0300 Subject: [PATCH] validate: Indent report details --- validate/gst/validate/gst-validate-report.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/validate/gst/validate/gst-validate-report.c b/validate/gst/validate/gst-validate-report.c index 264409304d..15b88e16ec 100644 --- a/validate/gst/validate/gst-validate-report.c +++ b/validate/gst/validate/gst-validate-report.c @@ -867,8 +867,14 @@ gst_validate_report_print_detected_on (GstValidateReport * report) void gst_validate_report_print_details (GstValidateReport * report) { - if (report->message) - gst_validate_printf (NULL, "%*s Details : %s\n", 12, "", report->message); + if (report->message) { + gint i; + gchar **lines = g_strsplit (report->message, "\n", -1); + + gst_validate_printf (NULL, "%*s Details : %s\n", 12, "", lines[0]); + for (i = 1; lines[i]; i++) + gst_validate_printf (NULL, "%*s%s\n", 21, "", lines[i]); + } } void