From: Jose Dapena Paz Date: Thu, 3 Sep 2009 10:55:01 +0000 (+0200) Subject: Better handling of spaces on converting text to html X-Git-Tag: 3.0.17-rc48~5 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=63951a450b16e144c215ecbac88c37c80dd823a0 Better handling of spaces on converting text to html --- diff --git a/src/modest-text-utils.c b/src/modest-text-utils.c index 5b7c0bd..8161ae5 100644 --- a/src/modest-text-utils.c +++ b/src/modest-text-utils.c @@ -454,7 +454,7 @@ modest_text_utils_convert_buffer_to_html_start (GString *html, const gchar *data guchar kar = data[i]; if (space_seen && kar != ' ') { - g_string_append (html, " "); + g_string_append (html, " "); space_seen = FALSE; } @@ -491,7 +491,6 @@ modest_text_utils_convert_buffer_to_html_start (GString *html, const gchar *data break_dist = 0; if (space_seen) { /* second space in a row */ g_string_append (html, "  "); - space_seen = FALSE; } else space_seen = TRUE; break;