[evolution] EHTMLEditorView - Use BR instead of zero width space when inserting new line into citation
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Use BR instead of zero width space when inserting new line into citation
- Date: Thu, 20 Nov 2014 13:17:13 +0000 (UTC)
commit 3351070e700874c3afedf1a47ff579cac008358a
Author: Tomas Popela <tpopela redhat com>
Date: Thu Nov 20 13:51:41 2014 +0100
EHTMLEditorView - Use BR instead of zero width space when inserting new line into citation
e-util/e-html-editor-view.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 2a67989..a14e9eb 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -759,9 +759,10 @@ insert_new_line_into_citation (EHTMLEditorView *view,
paragraph = e_html_editor_selection_get_paragraph_element (
selection, document, -1, 0);
- webkit_dom_html_element_set_inner_text (
- WEBKIT_DOM_HTML_ELEMENT (paragraph),
- UNICODE_ZERO_WIDTH_SPACE,
+ webkit_dom_node_append_child (
+ WEBKIT_DOM_NODE (paragraph),
+ WEBKIT_DOM_NODE (
+ webkit_dom_document_create_element (document, "BR", NULL)),
NULL);
/* Insert the selection markers to right place */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]