[evolution/webkit-composer: 104/147] Bug #689777 - HTML inter-line spacing too high



commit 4e69c3a552f72a5ec9a543a249874b4963f7f90d
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 e5bb5e2..bb0182f 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]