Re: [PATCH] Don't append final newline when copying URIs to text



Am Sonntag, den 08.10.2006, 15:48 +1300 schrieb Matthew Paul Thomas:
> On Oct 8, 2006, at 7:17 AM, Christian Neumair wrote:
> > ...
> > I wonder whether we should convert the URIs to
> >   "uri1, ..., uriN"
> > instead of
> >   "uri1\n...\nuriN" .u
> > ...
> 
> Commas are valid characters in URIs. (They feature heavily in the URIs 
> of Web pages managed by Vignette StoryServer, for example.)
> 
> Some programs guess that a trailing comma probably isn't part of the 
> URI, but others don't.

Good point, I also thought of this. But when users want to paste
multiple URIs into a text, doesn't the assumption usually hold that it
should be embedded into a floating text?

When apps are specifically interested in "valid" URI lists, they can
explicitly use gtk_selection_data_targets_include_uri() and
gtk_selection_data_get_uris().

-- 
Christian Neumair <chris gnome-de org>




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