[gegl] avoid inserting newlines when not indenting



commit d9e9fb509bfb4197acf82dd246a311237afee83b
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Jul 7 17:00:46 2017 +0200

    avoid inserting newlines when not indenting

 gegl/gegl-serialize.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gegl/gegl-serialize.c b/gegl/gegl-serialize.c
index 45316f6..38ecc8f 100644
--- a/gegl/gegl-serialize.c
+++ b/gegl/gegl-serialize.c
@@ -972,7 +972,8 @@ gegl_serialize2 (GeglNode *start, GeglNode *end, const char *basepath,
                     {
                       char *str = gegl_serialize2 (NULL, aux, basepath, ht,
                                                    flags);
-                      g_string_append_printf (s2, " aux=[ %s ]\n", str);
+                      g_string_append_printf (s2, " aux=[ %s ]%s", str,
+                            (flags& GEGL_SERIALIZE_INDENT)?"\n":" ");
                       g_free (str);
                     }
                 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]