From 6a76e39e37b492073a11234f1e4baadb7cad9696 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 23 Oct 2001 13:54:38 +0000 Subject: Change " " to " " at start of line. * e-html-utils.c (e_text_to_html_full): Change " " to " " at start of line. svn path=/trunk/; revision=13940 --- e-util/e-html-utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'e-util/e-html-utils.c') diff --git a/e-util/e-html-utils.c b/e-util/e-html-utils.c index c9e61a5372..7593bb967e 100644 --- a/e-util/e-html-utils.c +++ b/e-util/e-html-utils.c @@ -375,7 +375,8 @@ e_text_to_html_full (const char *input, unsigned int flags, guint32 color) case ' ': if (flags & E_TEXT_TO_HTML_CONVERT_SPACES) { if (cur == (const unsigned char *)input || - *(cur + 1) == ' ' || *(cur + 1) == '\t') { + *(cur + 1) == ' ' || *(cur + 1) == '\t' || + *(cur - 1) == '\n') { strcpy (out, " "); out += 6; col++; -- cgit v1.2.3