[evolution] Always use the faster version of quoting when we previously wrapped the content
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Always use the faster version of quoting when we previously wrapped the content
- Date: Fri, 19 Aug 2016 14:48:51 +0000 (UTC)
commit 93c07974de2ed9749ae44d17301afbeb07d1ef59
Author: Tomas Popela <tpopela redhat com>
Date: Fri Aug 19 15:04:18 2016 +0200
Always use the faster version of quoting when we previously wrapped the content
.../web-extension/e-editor-dom-functions.c | 9 +++------
1 files changed, 3 insertions(+), 6 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 27f905c..a7950d3 100644
--- a/modules/webkit-editor/web-extension/e-editor-dom-functions.c
+++ b/modules/webkit-editor/web-extension/e-editor-dom-functions.c
@@ -7919,7 +7919,7 @@ e_editor_dom_process_content_to_plain_text_for_exporting (EEditorPage *editor_pa
WebKitDOMNodeList *list = NULL;
WebKitDOMDOMWindow *dom_window = NULL;
WebKitDOMDOMSelection *dom_selection = NULL;
- gboolean wrap = FALSE, quote = FALSE, remove_last_new_line = FALSE;
+ gboolean wrap = TRUE, quote = FALSE, remove_last_new_line = FALSE;
gint length, ii;
GString *plain_text;
@@ -8058,17 +8058,14 @@ e_editor_dom_process_content_to_plain_text_for_exporting (EEditorPage *editor_pa
webkit_dom_node_normalize (source);
if (quote) {
- if (wrap)
- quote_plain_text_elements_after_wrapping_in_element (editor_page, WEBKIT_DOM_ELEMENT
(source));
- else
- quote_plain_text_recursive (document, source, source, 0);
+ quote_plain_text_elements_after_wrapping_in_element (editor_page, WEBKIT_DOM_ELEMENT
(source));
} else if (e_editor_page_get_html_mode (editor_page)) {
WebKitDOMElement *citation;
citation = webkit_dom_element_query_selector (
WEBKIT_DOM_ELEMENT (source), "blockquote[type=cite]", NULL);
if (citation)
- quote_plain_text_recursive (document, source, source, 0);
+ quote_plain_text_elements_after_wrapping_in_element (editor_page, WEBKIT_DOM_ELEMENT
(source));
}
process_node_to_plain_text_for_exporting (editor_page, source, plain_text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]