Don't strip trailing space from signature separator

https://bugzilla.gnome.org/show_bug.cgi?id=736985
This commit is contained in:
Robert Schroll 2014-09-19 13:09:52 -04:00
parent 513c6d8c0d
commit 17b481d949

View file

@ -339,7 +339,10 @@ public string html_to_flowed_text(WebKit.DOM.HTMLElement el) {
string[] lines = doctext.split("\n");
GLib.StringBuilder flowed = new GLib.StringBuilder.sized(doctext.length);
foreach (string line in lines) {
line = line.chomp();
// Strip trailing whitespace, so it doesn't look like a flowed line. But the
// signature separator "-- " is special, so leave that alone.
if (line != "-- ")
line = line.chomp();
int quote_level = 0;
while (line[quote_level] == Geary.RFC822.Utils.QUOTE_MARKER)
quote_level += 1;