changeset 520:fd6a3294366f

[gaim-migrate @ 530] Should fix problem with smileys causing resize to lose <BR> committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 24 Jul 2000 19:50:34 +0000
parents 926ba0807a2d
children 0f179ac59e27
files src/conversation.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Fri Jul 21 20:03:12 2000 +0000
+++ b/src/conversation.c	Mon Jul 24 19:50:34 2000 +0000
@@ -975,6 +975,7 @@
 	int y;
 	int i;
 	char *smiley = g_malloc(7);
+	gboolean add_space = FALSE;
 
 	if (!who) {
 		if (flags & WFLAG_SEND)
@@ -1068,9 +1069,11 @@
 					gtk_html_add_pixmap(GTK_HTML(c->text), face, 0);
 					y = 0;
 					i += len - 1;
+					add_space = TRUE;
 				} else {
 	               			buf2[y] = what[i];
 	               			y++;
+					add_space = FALSE;
 
 				}
         		}
@@ -1079,7 +1082,10 @@
 			{
 				buf2[y] = 0;
 				gtk_html_append_text(GTK_HTML(c->text), buf2, (display_options & OPT_DISP_IGNORE_COLOUR) ? HTML_OPTION_NO_COLOURS : 0);
+				add_space = FALSE;
 			}				
+			if (add_space)
+				gtk_html_append_text(GTK_HTML(c->text), " ", (display_options & OPT_DISP_IGNORE_COLOUR) ? HTML_OPTION_NO_COLOURS : 0);
 		}
 		else
 		{