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:
parent
5e5e75d894
commit
5a22137d54
@ -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>";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user