diff options
author | Dan Winship <danw@src.gnome.org> | 2001-10-23 21:54:38 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-10-23 21:54:38 +0800 |
commit | 6a76e39e37b492073a11234f1e4baadb7cad9696 (patch) | |
tree | 80e0766dada1d8f6624d75e57758cd4c97a5f805 | |
parent | 8d6a0a328acb07ffab15deb0f39822f5c3c7d8a5 (diff) | |
download | gsoc2013-evolution-6a76e39e37b492073a11234f1e4baadb7cad9696.tar gsoc2013-evolution-6a76e39e37b492073a11234f1e4baadb7cad9696.tar.gz gsoc2013-evolution-6a76e39e37b492073a11234f1e4baadb7cad9696.tar.bz2 gsoc2013-evolution-6a76e39e37b492073a11234f1e4baadb7cad9696.tar.lz gsoc2013-evolution-6a76e39e37b492073a11234f1e4baadb7cad9696.tar.xz gsoc2013-evolution-6a76e39e37b492073a11234f1e4baadb7cad9696.tar.zst gsoc2013-evolution-6a76e39e37b492073a11234f1e4baadb7cad9696.zip |
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
-rw-r--r-- | e-util/ChangeLog | 5 | ||||
-rw-r--r-- | e-util/e-html-utils.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog index a32a858c40..4a184cd61b 100644 --- a/e-util/ChangeLog +++ b/e-util/ChangeLog @@ -1,3 +1,8 @@ +2001-10-23 Dan Winship <danw@ximian.com> + + * e-html-utils.c (e_text_to_html_full): Change " " to " " at + start of line. + 2001-10-22 Dan Winship <danw@ximian.com> * e-passwords.c (e_passwords_get_password): Pass a 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++; |