[evolution] When removing empty blocks from citations, don't remove BR elements
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] When removing empty blocks from citations, don't remove BR elements
- Date: Tue, 6 Sep 2016 14:53:16 +0000 (UTC)
commit 1ac98f111f3fce6d92e7a399e681fb39a81c4c39
Author: Tomas Popela <tpopela redhat com>
Date: Mon Sep 5 14:28:39 2016 +0200
When removing empty blocks from citations, don't remove BR elements
We want to preserve line breaks, don't we?
.../web-extension/e-editor-dom-functions.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
index 98682c8..ffe2439 100644
--- a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -3628,7 +3628,7 @@ remove_empty_blocks (WebKitDOMDocument *document)
WebKitDOMNodeList *list = NULL;
list = webkit_dom_document_query_selector_all (
- document, "blockquote[type=cite] > :empty", NULL);
+ document, "blockquote[type=cite] > :empty:not(br)", NULL);
length = webkit_dom_node_list_get_length (list);
for (ii = 0; ii < length; ii++)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]