Don't strip trailing space from signature separator
https://bugzilla.gnome.org/show_bug.cgi?id=736985
This commit is contained in:
parent
513c6d8c0d
commit
17b481d949
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue