[evolution/wip/webkit-composer: 167/372] Bug #689777 - HTML inter-line spacing too high



commit 6b29ad36dfc8581709e9fd71a65a20409d1a9265
Author: Dan Vrátil <dvratil redhat com>
Date:   Sun Dec 9 22:46:05 2012 +0100

    Bug #689777 - HTML inter-line spacing too high
    
    Reduce vertical space between paragraphs and headings.

 e-util/e-editor-widget.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-editor-widget.c b/e-util/e-editor-widget.c
index 4eeded6..1e12629 100644
--- a/e-util/e-editor-widget.c
+++ b/e-util/e-editor-widget.c
@@ -1769,6 +1769,16 @@ e_editor_widget_update_fonts (EEditorWidget *widget)
                e_color_to_value (link),
                e_color_to_value (visited));
 
+       /* See bug #689777 for details */
+       g_string_append_printf (stylesheet,
+               "p,pre,code,address {\n"
+               "  margin: 0;\n"
+               "}\n"
+               "h1,h2,h3,h4,h5,h6 {\n"
+               "  margin-top: 0.2em;\n"
+               "  margin-bottom: 0.2em;\n"
+               "}\n");
+
        gdk_color_free (link);
        gdk_color_free (visited);
 


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