From 3168a3e08612c27843e641879dde7bcfb053d5b5 Mon Sep 17 00:00:00 2001 From: Corey Berla Date: Mon, 10 Oct 2022 09:35:00 -0700 Subject: [PATCH] gdkcontentserializer: Use newlines for file separators 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/gdkcontentserializer.c b/gdk/gdkcontentserializer.c index 0e24b222e6..2ffbbf5ae5 100644 --- a/gdk/gdkcontentserializer.c +++ b/gdk/gdkcontentserializer.c @@ -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); }