Remove margin from plain text / original view

pull/194/merge
M66B 3 years ago
parent 00383ba4f2
commit bc7287e731

@ -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));
if (Boolean.TRUE.equals(message.plain_only)) {
document.select("body")
.attr("style", "margin:0; padding:0;");
boolean monospaced_pre = prefs.getBoolean("monospaced_pre", false); boolean monospaced_pre = prefs.getBoolean("monospaced_pre", false);
if (Boolean.TRUE.equals(message.plain_only) && monospaced_pre) if (monospaced_pre)
HtmlHelper.restorePre(document); HtmlHelper.restorePre(document);
}
HtmlHelper.guessSchemes(document); HtmlHelper.guessSchemes(document);
HtmlHelper.autoLink(document); HtmlHelper.autoLink(document);

Loading…
Cancel
Save