[evolution-ews] Fix special case in Tasks. When creating a Task in Outlook with empty body, its add '&nbsp'. So we a



commit 95392f483d1f9e06178d0d2b1e6a5d919f4ef758
Author: Pavel Ocheretny <pavel ocheretny intel com>
Date:   Thu Sep 1 11:20:33 2011 +0300

    Fix special case in Tasks. When creating a Task in Outlook with empty body, its add '&nbsp'. So we are cleaning it

 src/server/e-ews-item.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/server/e-ews-item.c b/src/server/e-ews-item.c
index c6ebff0..735169c 100644
--- a/src/server/e-ews-item.c
+++ b/src/server/e-ews-item.c
@@ -798,7 +798,8 @@ strip_html_tags (const gchar *html_text)
 		*i, *j;
 
 	for (j = plain_text, i = start + 6; i < end; i++) {
-		if (*i == '<') { while (*i != '>') i++; }
+		if (*i == '&') i = i + 6;
+		if (*i == '<') while (*i != '>') i++;
 		else { *j = *i; j++; }
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]