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
This commit is contained in:
Dan Winship
2001-10-23 13:54:38 +00:00
parent 8d6a0a328a
commit 6a76e39e37
2 changed files with 7 additions and 1 deletions

View File

@ -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++;