changeset 9612:a11bc3f5c3e3

[gaim-migrate @ 10455] * Paco-Paco glares at marv This fixes a bug with blank lines and the new lines as separate messages flag. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Wed, 28 Jul 2004 05:33:54 +0000
parents 5e78d07f6b36
children 1b13160bf5a4
files src/gtkimhtml.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Wed Jul 28 04:25:32 2004 +0000
+++ b/src/gtkimhtml.c	Wed Jul 28 05:33:54 2004 +0000
@@ -4117,9 +4117,12 @@
 	gtk_text_iter_forward_to_line_end(&end);
 
 	for (i = 0, j = 0; i < lines; i++) {
-		ret[j] = gtk_imhtml_get_markup_range(imhtml, &start, &end);
-		if (ret[j] != NULL)
-			j++;
+		if (gtk_text_iter_get_char(&start) != '\n') {
+			ret[j] = gtk_imhtml_get_markup_range(imhtml, &start, &end);
+			if (ret[j] != NULL)
+				j++;
+		}
+
 		gtk_text_iter_forward_line(&start);
 		end = start;
 		gtk_text_iter_forward_to_line_end(&end);