[evolution] EHTMLEditorView - Save the text that can be written inside the tabulator wrapper
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Save the text that can be written inside the tabulator wrapper
- Date: Wed, 10 Sep 2014 14:32:11 +0000 (UTC)
commit e0dc225662f4946d16814fcea488026eb1292eef
Author: Tomas Popela <tpopela redhat com>
Date: Wed Sep 10 16:21:12 2014 +0200
EHTMLEditorView - Save the text that can be written inside the tabulator wrapper
It can happen sometimes that the text can be written inside the
tabulator wrapper. So when this happens append the text into the plain
text version of the message (in the HTML version it already is) and
don't throw it away.
e-util/e-html-editor-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 7843bd1..dde877f 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -5862,6 +5862,10 @@ process_elements (EHTMLEditorView *view,
g_free (tmp);
content = webkit_dom_node_get_text_content (child);
g_regex_unref (regex);
+ } else if (content && *content) {
+ /* Some it happens that some text is written inside
+ * the tab span element, so save it. */
+ g_string_append (buffer, content);
}
}
if (to_html) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]