From 988c6022daf9e79917adf8f1ccc942e4846d7fb7 Mon Sep 17 00:00:00 2001 From: Christine Spang Date: Tue, 6 Dec 2016 16:58:30 -0800 Subject: [PATCH] feat(k2): Wrap lines on preformatted text Summary: We now use
 tags to preserve whitespace in plaintext emails,
but it's annoying when there are long lines that force a scroll
bar. Wrap them instead.

Test Plan:
looked at some emails. Not sure this isn't going to break something
           weird---is 
 used in anything else?

Reviewers: bengotow

Differential Revision: https://phab.nylas.com/D3484
---
 src/K2                  | 2 +-
 static/email-frame.less | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/K2 b/src/K2
index f0b15bcf2..36fe5050c 160000
--- a/src/K2
+++ b/src/K2
@@ -1 +1 @@
-Subproject commit f0b15bcf27f215cb1781fec75284b8d82ba64f3a
+Subproject commit 36fe5050cd5d8c644adf5246d601cd829909b3a5
diff --git a/static/email-frame.less b/static/email-frame.less
index 84430e480..372aa6363 100644
--- a/static/email-frame.less
+++ b/static/email-frame.less
@@ -99,6 +99,11 @@
     max-width: 100%;
   }
 
+  pre.nylas-plaintext {
+    white-space: pre-wrap;
+    word-wrap: break-word;
+  }
+
   img {
     border: 0;
   }