[evolution/wip/webkit2] EHTMLEditorView - Very long strings without spaces can overflow the paragraph



commit ee826184eba454e2b362bd30048ad7ba29dee0fa
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Mar 2 14:48:30 2016 +0100

    EHTMLEditorView - Very long strings without spaces can overflow the paragraph

 .../e-html-editor-selection-dom-functions.c        |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/web-extensions/composer/e-html-editor-selection-dom-functions.c 
b/web-extensions/composer/e-html-editor-selection-dom-functions.c
index e67c1aa..0824372 100644
--- a/web-extensions/composer/e-html-editor-selection-dom-functions.c
+++ b/web-extensions/composer/e-html-editor-selection-dom-functions.c
@@ -517,7 +517,9 @@ dom_set_paragraph_style (WebKitDOMDocument *document,
        if (!e_html_editor_web_extension_get_html_mode (extension) &&
            (!parent || WEBKIT_DOM_IS_HTML_BODY_ELEMENT (parent))) {
                style = g_strdup_printf (
-                       "width: %dch; word-wrap: normal; %s",
+                       "width: %dch; "
+                       "word-wrap: break-word; "
+                       "word-break: break-word; %s",
                        (word_wrap_length + offset), style_to_add);
        } else {
                if (*style_to_add)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]