[Xfce4-commits] <postler:master> Instead as many initial quote elements as needed

Christian Dywan noreply at xfce.org
Sun Feb 13 19:18:01 CET 2011


Updating branch refs/heads/master
         to f441823f9b9d8562977cd2e949e3942acb22b143 (commit)
       from 48c64b8449981052a4e5f67dc5100bfdecd670ef (commit)

commit f441823f9b9d8562977cd2e949e3942acb22b143
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Feb 13 15:11:50 2011 +0100

    Instead as many initial quote elements as needed
    
    If the first one is '> >' we need two elements.

 postler/postler-content.vala |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/postler/postler-content.vala b/postler/postler-content.vala
index 654ad39..980844d 100644
--- a/postler/postler-content.vala
+++ b/postler/postler-content.vala
@@ -988,8 +988,10 @@ public class Postler.Content : WebKit.WebView {
 
                 if (quote_mark < in_quote)
                     new_body.append ("</blockquote>");
-                else if (quote_mark > in_quote)
-                    new_body.append ("<blockquote>");
+                else if (quote_mark > in_quote) {
+                    for (int i = in_quote; i < quote_mark; i++)
+                        new_body.append ("<blockquote>");
+                }
                 in_quote = quote_mark;
             }
 



More information about the Xfce4-commits mailing list