gdkcontentserializer: Use newlines for file separators
authorCorey Berla <corey@berla.me>
Mon, 10 Oct 2022 16:35:00 +0000 (09:35 -0700)
committerCorey Berla <corey@berla.me>
Mon, 10 Oct 2022 20:27:07 +0000 (13:27 -0700)
Use newlines rather than spaces to separate file paths (or uri's)
when serializing text/plain files.  There isn't a matching
deserializer, so we can do this in isolation.  Newlines
seem to make more sense when pasting into a text editor etc.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5240
gdk/gdkcontentserializer.c

index 0e24b222e6f387d4f803f3757a0b5330dd0ee32d..2ffbbf5ae5eab18b956fcc22d60647f76a7ff63e 100644 (file)
@@ -879,7 +879,7 @@ file_text_serializer (GdkContentSerializer *serializer)
           g_string_append (str, path);
           g_free (path);
           if (l->next)
-            g_string_append (str, " ");
+            g_string_append (str, "\n");
         }
       path = g_string_free (str, FALSE);
     }