[evolution] EHTMLEditorView - Treat non-breaking space as a regular space
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EHTMLEditorView - Treat non-breaking space as a regular space
- Date: Fri, 7 Aug 2015 11:29:28 +0000 (UTC)
commit db11d8fbe583d939dae84efb11e109ba65a8d870
Author: Tomas Popela <tpopela redhat com>
Date: Fri Aug 7 11:09:59 2015 +0200
EHTMLEditorView - Treat non-breaking space as a regular space
The problem is that before this change the same text could end wrapped differently
when written or when when it was pasted. When writing a text WebKit uses a
non-breaking space when pressing a space and then replacing it with regular space
if we continue with writing. Sometimes (after manipulating with selection) the
non-breaking space is not replaced with regular one thus the wrapping will fail
there. To avoid it we have to treat non-breaking space as a regular space.
e-util/e-html-editor-view.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-html-editor-view.c b/e-util/e-html-editor-view.c
index 1b6638e..e5455b6 100644
--- a/e-util/e-html-editor-view.c
+++ b/e-util/e-html-editor-view.c
@@ -11053,6 +11053,7 @@ e_html_editor_view_update_fonts (EHTMLEditorView *view)
" font-size: %dpt;\n"
" font-weight: %d;\n"
" font-style: %s;\n"
+ " -webkit-nbsp-mode: space;"
" -webkit-line-break: after-white-space;\n",
pango_font_description_get_family (vw),
pango_font_description_get_size (vw) / PANGO_SCALE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]