From e12dd323f8e56a0af75534919507e3860405ec7c Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Thu, 5 May 2011 13:52:28 -0700 Subject: [PATCH] Issue 3105: Drop newlines in favor of preserving multiple spaces in htmlified text bodies. --- src/com/fsck/k9/helper/HtmlConverter.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/com/fsck/k9/helper/HtmlConverter.java b/src/com/fsck/k9/helper/HtmlConverter.java index 5ea30e59c..fefa22d2c 100644 --- a/src/com/fsck/k9/helper/HtmlConverter.java +++ b/src/com/fsck/k9/helper/HtmlConverter.java @@ -142,7 +142,9 @@ public class HtmlConverter { while ((c = reader.read()) != -1) { switch (c) { case '\n': - buff.append("
\n"); + // pine treats
as two newlines, but
as one newline. Use
so our messages aren't + // doublespaced. + buff.append("
"); break; case '\r': break; @@ -182,7 +184,9 @@ public class HtmlConverter { while ((c = reader.read()) != -1) { switch (c) { case '\n': - buff.append("
\n"); + // pine treats
as two newlines, but
as one newline. Use
so our messages aren't + // doublespaced. + buff.append("
"); break; case '&': buff.append("&"); @@ -1118,7 +1122,7 @@ public class HtmlConverter { final String font = K9.messageViewFixedWidthFont() ? "monospace" : "sans-serif"; - return "
";
+        return "
";
     }
 
     private static String htmlifyMessageFooter() {