[evolution/gnome-3-18] EHTMLEditorView - When merging siblings repeat until none is left
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-18] EHTMLEditorView - When merging siblings repeat until none is left
- Date: Tue, 29 Sep 2015 08:41:44 +0000 (UTC)
commit af153ed1803bf654b8873411ada9753e6dc97891
Author: Tomas Popela <tpopela redhat com>
Date: Tue Sep 29 09:15:34 2015 +0200
EHTMLEditorView - When merging siblings repeat until none is left
e-util/e-html-editor-view.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 26f9187..c705d5b 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -3142,7 +3142,7 @@ merge_siblings_if_necessarry (WebKitDOMDocument *document,
element = webkit_dom_document_query_selector (document, "blockquote + blockquote", NULL);
if (!element)
goto signature;
-
+ repeat:
prev_element = WEBKIT_DOM_ELEMENT (webkit_dom_node_get_previous_sibling (
WEBKIT_DOM_NODE (element)));
equal_nodes = webkit_dom_node_is_equal_node (
@@ -3168,6 +3168,10 @@ merge_siblings_if_necessarry (WebKitDOMDocument *document,
}
}
+ element = webkit_dom_document_query_selector (document, "blockquote + blockquote", NULL);
+ if (element)
+ goto repeat;
+
signature:
if (!deleted_content)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]