Mercurial > pidgin.yaz
comparison src/gtkimhtml.c @ 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 | a1029432ae4a |
children | de9c4dc072b5 |
comparison
equal
deleted
inserted
replaced
9611:5e78d07f6b36 | 9612:a11bc3f5c3e3 |
---|---|
4115 gtk_text_buffer_get_start_iter(imhtml->text_buffer, &start); | 4115 gtk_text_buffer_get_start_iter(imhtml->text_buffer, &start); |
4116 end = start; | 4116 end = start; |
4117 gtk_text_iter_forward_to_line_end(&end); | 4117 gtk_text_iter_forward_to_line_end(&end); |
4118 | 4118 |
4119 for (i = 0, j = 0; i < lines; i++) { | 4119 for (i = 0, j = 0; i < lines; i++) { |
4120 ret[j] = gtk_imhtml_get_markup_range(imhtml, &start, &end); | 4120 if (gtk_text_iter_get_char(&start) != '\n') { |
4121 if (ret[j] != NULL) | 4121 ret[j] = gtk_imhtml_get_markup_range(imhtml, &start, &end); |
4122 j++; | 4122 if (ret[j] != NULL) |
4123 j++; | |
4124 } | |
4125 | |
4123 gtk_text_iter_forward_line(&start); | 4126 gtk_text_iter_forward_line(&start); |
4124 end = start; | 4127 end = start; |
4125 gtk_text_iter_forward_to_line_end(&end); | 4128 gtk_text_iter_forward_to_line_end(&end); |
4126 } | 4129 } |
4127 | 4130 |