Skip to content

Commit

Permalink
Remove trailing whitespace before wrapping plain text
Browse files Browse the repository at this point in the history
Trailing spaces will inadvertently cause the line to be flowed into the
next.

https://bugzilla.gnome.org/show_bug.cgi?id=731746
  • Loading branch information
rschroll committed Jun 19, 2014
1 parent 2a35b77 commit 3895730
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/util/util-webkit.vala
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ public string html_to_flowed_text(WebKit.DOM.Document doc) {
string[] lines = doctext.split("\n");
GLib.StringBuilder flowed = new GLib.StringBuilder.sized(doctext.length);
foreach (string line in lines) {
line = line.chomp();
int quote_level = 0;
while (line[quote_level] == Geary.RFC822.Utils.QUOTE_MARKER)
quote_level += 1;
Expand Down

0 comments on commit 3895730

Please sign in to comment.