fix url display
authorPaul Mangan <paul@claws-mail.org>
Mon, 20 May 2002 07:41:45 +0000 (07:41 +0000)
committerPaul Mangan <paul@claws-mail.org>
Mon, 20 May 2002 07:41:45 +0000 (07:41 +0000)
src/textview.c

index 7e7ec51b914337ef4bddfeeaa03292b9fac7c4e0..c07ebe64129f97f6251d2c5aeed30370a8d2cb0e 100644 (file)
@@ -995,6 +995,12 @@ static void textview_write_link(TextView *textview, const gchar *url,
     }
 #endif
 
+    if (!conv || conv_convert(conv, buf, sizeof(buf), str) < 0)
+       strncpy2(buf, str, sizeof(buf));
+
+    strcrchomp(buf);
+    gtk_stext_insert(text, textview->msgfont, NULL, NULL, " ", 1);
     /* this part is based on the code in make_clickable_parts */
     if (prefs_common.enable_color) {
        link_color = &uri_color;