[evolution] EWebView - When showing plain text template from editor in the preview it shows the citation lines a



commit 1aec1adb853f85232360ab94daf3a03aba181127
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Feb 4 16:52:07 2015 +0100

    EWebView - When showing plain text template from editor in the preview it shows the citation lines as 
well as ">"

 e-util/e-web-view.c |   32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index 47d64a8..538a915 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -2728,7 +2728,7 @@ e_web_view_update_fonts (EWebView *web_view)
 
        g_string_append (
                stylesheet,
-               "blockquote[type=cite] "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
                "{\n"
                "  padding: 0ch 1ch 0ch 1ch;\n"
                "  margin: 0ch;\n"
@@ -2740,7 +2740,7 @@ e_web_view_update_fonts (EWebView *web_view)
        /* Block quote border colors are borrowed from Thunderbird. */
        g_string_append_printf (
                stylesheet,
-               "blockquote[type=cite] "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
                "{\n"
                "  border-color: %s;\n"
                "}\n",
@@ -2748,8 +2748,8 @@ e_web_view_update_fonts (EWebView *web_view)
 
        g_string_append_printf (
                stylesheet,
-               "blockquote[type=cite] "
-               "blockquote[type=cite] "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
                "{\n"
                "  border-color: %s;\n"
                "}\n",
@@ -2757,9 +2757,9 @@ e_web_view_update_fonts (EWebView *web_view)
 
        g_string_append_printf (
                stylesheet,
-               "blockquote[type=cite] "
-               "blockquote[type=cite] "
-               "blockquote[type=cite] "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
                "{\n"
                "  border-color: %s;\n"
                "}\n",
@@ -2767,10 +2767,10 @@ e_web_view_update_fonts (EWebView *web_view)
 
        g_string_append_printf (
                stylesheet,
-               "blockquote[type=cite] "
-               "blockquote[type=cite] "
-               "blockquote[type=cite] "
-               "blockquote[type=cite] "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
                "{\n"
                "  border-color: %s;\n"
                "}\n",
@@ -2778,11 +2778,11 @@ e_web_view_update_fonts (EWebView *web_view)
 
        g_string_append_printf (
                stylesheet,
-               "blockquote[type=cite] "
-               "blockquote[type=cite] "
-               "blockquote[type=cite] "
-               "blockquote[type=cite] "
-               "blockquote[type=cite] "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
+               "blockquote[type=cite]:not(.-x-evo-plaintext-quoted) "
                "{\n"
                "  border-color: %s;\n"
                "}\n",


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