[evolution/gnome-3-22] Bug 770662 - [WK2] Leading space disappears on paragraph format change



commit a75dc1a507c35a042df1fcd73dfbacb352271d73
Author: Tomas Popela <tpopela redhat com>
Date:   Thu Sep 22 12:47:06 2016 +0200

    Bug 770662 - [WK2] Leading space disappears on paragraph format change
    
    Make the paragraph use the "white-space: pre-wrap" style to preserve whitespaces.

 modules/webkit-editor/e-webkit-editor.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/modules/webkit-editor/e-webkit-editor.c b/modules/webkit-editor/e-webkit-editor.c
index 0603ed9..ace34d2 100644
--- a/modules/webkit-editor/e-webkit-editor.c
+++ b/modules/webkit-editor/e-webkit-editor.c
@@ -950,6 +950,13 @@ webkit_editor_update_styles (EContentEditor *editor)
 
        g_string_append (
                stylesheet,
+               "[data-evo-paragraph] "
+               "{\n"
+               "  white-space: pre-wrap; \n"
+               "}\n");
+
+       g_string_append (
+               stylesheet,
                "body[data-evo-plain-text] [data-evo-paragraph] "
                "{\n"
                "  word-wrap: break-word; \n"


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