It happens every so often that you quickly select an address
and there's leading or trailing space you accidentally hit.
So we strip the selection, otherwise such addresses don't work.
gtk_widget_get_display (GTK_WIDGET (view)),
GDK_SELECTION_PRIMARY);
uri = gtk_clipboard_wait_for_text (clipboard);
- if (uri && strchr (uri, '.') && !strchr (uri, ' '))
+ if (uri && strchr (uri, '.') && !strchr (g_strstrip (uri), ' '))
{
new_uri = sokoke_magic_uri (uri, NULL);
if (event->state & GDK_CONTROL_MASK)