[geary] Remove trailing whitespace before wrapping plain text
- From: Robert Schroll <rschroll src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Remove trailing whitespace before wrapping plain text
- Date: Thu, 19 Jun 2014 19:54:46 +0000 (UTC)
commit 38957303cb8e57fa65e85a066fe8d56fbe6a2bb3
Author: Robert Schroll <rschroll gmail com>
Date: Thu Jun 19 15:47:15 2014 -0400
Remove trailing whitespace before wrapping plain text
Trailing spaces will inadvertently cause the line to be flowed into the
next.
https://bugzilla.gnome.org/show_bug.cgi?id=731746
src/client/util/util-webkit.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/client/util/util-webkit.vala b/src/client/util/util-webkit.vala
index 81bf5d8..d5eb48e 100644
--- a/src/client/util/util-webkit.vala
+++ b/src/client/util/util-webkit.vala
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]