[evolution] EHTMLEditorView - Inserting space after the link appends it to the link
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Inserting space after the link appends it to the link
- Date: Fri, 10 Jul 2015 09:36:16 +0000 (UTC)
commit a041f39628ef1cbb1a283be561280dc02961c43d
Author: Tomas Popela <tpopela redhat com>
Date: Fri Jul 10 11:33:44 2015 +0200
EHTMLEditorView - Inserting space after the link appends it to the link
Check if the text that we are appending doesn't start with non-breaking space.
e-util/e-html-editor-view.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 8c77505..73a374c 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -1630,7 +1630,8 @@ html_editor_view_check_magic_links (EHTMLEditorView *view,
text_to_append = webkit_dom_node_get_text_content (node);
if (text_to_append && *text_to_append &&
!strstr (text_to_append, " ") &&
- !strchr (URL_INVALID_TRAILING_CHARS, *text_to_append)) {
+ !strchr (URL_INVALID_TRAILING_CHARS, *text_to_append) &&
+ !g_str_has_prefix (text_to_append, UNICODE_NBSP)) {
appending_to_link = TRUE;
parent = WEBKIT_DOM_ELEMENT (prev_sibling);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]