mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 09:08:49 -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() {
|
private static String htmlifyMessageHeader() {
|
||||||
if (K9.messageViewFixedWidthFont()) {
|
final String font = K9.messageViewFixedWidthFont()
|
||||||
return "<pre style=\"white-space: pre-wrap; word-wrap:break-word; \">";
|
? "monospace"
|
||||||
} else {
|
: "sans-serif";
|
||||||
return "<div style=\"white-space: pre-wrap; word-wrap:break-word; \">";
|
return "<pre style=\"white-space: pre-wrap; word-wrap:break-word; font-family: " + font + "\">";
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String htmlifyMessageFooter() {
|
private static String htmlifyMessageFooter() {
|
||||||
if (K9.messageViewFixedWidthFont()) {
|
return "</pre>";
|
||||||
return "</pre>";
|
|
||||||
} else {
|
|
||||||
return "</div>";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user