1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

Use <pre> instead of <div> so that plain text clients get the line wrapping correct.

This commit is contained in:
Andrew Chen 2011-03-02 08:17:36 -08:00
parent 5e5e75d894
commit 5a22137d54

View File

@ -1073,19 +1073,14 @@ public class HtmlConverter {
}
private static String htmlifyMessageHeader() {
if (K9.messageViewFixedWidthFont()) {
return "<pre style=\"white-space: pre-wrap; word-wrap:break-word; \">";
} else {
return "<div style=\"white-space: pre-wrap; word-wrap:break-word; \">";
}
final String font = K9.messageViewFixedWidthFont()
? "monospace"
: "sans-serif";
return "<pre style=\"white-space: pre-wrap; word-wrap:break-word; font-family: " + font + "\">";
}
private static String htmlifyMessageFooter() {
if (K9.messageViewFixedWidthFont()) {
return "</pre>";
} else {
return "</div>";
}
return "</pre>";
}
/**