[geary] Fix sketchy line breaking in quoted plain text.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Fix sketchy line breaking in quoted plain text.
- Date: Thu, 16 Nov 2017 07:11:13 +0000 (UTC)
commit 1d746e43c7da1106006549b5deedea4d85d76d28
Author: Michael James Gratton <mike vee net>
Date: Thu Nov 16 18:04:18 2017 +1100
Fix sketchy line breaking in quoted plain text.
* src/engine/util/util-html.vala (smart_escape): Use "white-space:
pre-wrap" for preserving whitespace to get decent work breaks.
src/engine/util/util-html.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/engine/util/util-html.vala b/src/engine/util/util-html.vala
index 5eb45ab..522c119 100644
--- a/src/engine/util/util-html.vala
+++ b/src/engine/util/util-html.vala
@@ -182,7 +182,7 @@ public string smart_escape(string? text, bool preserve_whitespace_in_html) {
preserve_whitespace_in_html = true;
}
if (preserve_whitespace_in_html)
- res = @"<div style='white-space: pre;'>$res</div>";
+ res = @"<div style='white-space: pre-wrap;'>$res</div>";
return res;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]