[evolution] EHTMLEditorSelection - Make sure we really wrap when ending a line
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorSelection - Make sure we really wrap when ending a line
- Date: Thu, 1 Oct 2015 09:33:30 +0000 (UTC)
commit f1b3dd7247706506134354d913328584cad68b98
Author: Tomas Popela <tpopela redhat com>
Date: Thu Oct 1 11:31:06 2015 +0200
EHTMLEditorSelection - Make sure we really wrap when ending a line
e-util/e-html-editor-selection.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-selection.c b/e-util/e-html-editor-selection.c
index 070670e..a2c132b 100644
--- a/e-util/e-html-editor-selection.c
+++ b/e-util/e-html-editor-selection.c
@@ -6580,8 +6580,18 @@ wrap_lines (EHTMLEditorSelection *selection,
if (check_next_node)
goto check_node;
line_length += length_left;
- if (line_length == length_to_wrap)
+ if (line_length == length_to_wrap) {
line_length = 0;
+
+ element = webkit_dom_document_create_element (document, "BR", NULL);
+ element_add_class (element, "-x-evo-wrap-br");
+
+ webkit_dom_node_insert_before (
+ webkit_dom_node_get_parent_node (node),
+ WEBKIT_DOM_NODE (element),
+ webkit_dom_node_get_next_sibling (node),
+ NULL);
+ }
goto next_node;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]