mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Remove margin from plain text / original view
This commit is contained in:
parent
00383ba4f2
commit
bc7287e731
1 changed files with 7 additions and 3 deletions
|
@ -2665,9 +2665,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
.appendElement("em")
|
.appendElement("em")
|
||||||
.text(context.getString(R.string.title_truncated));
|
.text(context.getString(R.string.title_truncated));
|
||||||
|
|
||||||
boolean monospaced_pre = prefs.getBoolean("monospaced_pre", false);
|
if (Boolean.TRUE.equals(message.plain_only)) {
|
||||||
if (Boolean.TRUE.equals(message.plain_only) && monospaced_pre)
|
document.select("body")
|
||||||
HtmlHelper.restorePre(document);
|
.attr("style", "margin:0; padding:0;");
|
||||||
|
boolean monospaced_pre = prefs.getBoolean("monospaced_pre", false);
|
||||||
|
if (monospaced_pre)
|
||||||
|
HtmlHelper.restorePre(document);
|
||||||
|
}
|
||||||
|
|
||||||
HtmlHelper.guessSchemes(document);
|
HtmlHelper.guessSchemes(document);
|
||||||
HtmlHelper.autoLink(document);
|
HtmlHelper.autoLink(document);
|
||||||
|
|
Loading…
Reference in a new issue