mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 07:23:03 +00:00
Fixed pre/monospace with links
This commit is contained in:
parent
620ddc4e09
commit
986540b770
1 changed files with 4 additions and 4 deletions
|
@ -2065,10 +2065,6 @@ public class HtmlHelper {
|
|||
tnode = (TextNode) node;
|
||||
String text = tnode.getWholeText();
|
||||
ssb.append(text);
|
||||
if (monospaced_pre &&
|
||||
node.parent() instanceof Element &&
|
||||
"true".equals(((Element) node.parent()).attr("x-plain")))
|
||||
setSpan(ssb, new TypefaceSpan("monospace"), ssb.length() - text.length(), ssb.length());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2309,6 +2305,10 @@ public class HtmlHelper {
|
|||
default:
|
||||
Log.e("Unknown tag=" + element.tagName());
|
||||
}
|
||||
|
||||
if (monospaced_pre &&
|
||||
"true".equals(element.attr("x-plain")))
|
||||
setSpan(ssb, new TypefaceSpan("monospace"), start, ssb.length());
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue