mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
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
This commit is contained in:
parent
1b4ed00509
commit
3168a3e086
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user