diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/text/HtmlParser.java b/mastodon/src/main/java/org/joinmastodon/android/ui/text/HtmlParser.java index 75de19a93..50112befb 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/text/HtmlParser.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/text/HtmlParser.java @@ -1,11 +1,14 @@ package org.joinmastodon.android.ui.text; import android.graphics.Typeface; +import android.graphics.fonts.FontFamily; +import android.graphics.fonts.FontStyle; import android.text.SpannableStringBuilder; import android.text.Spanned; import android.text.TextUtils; import android.text.style.BulletSpan; import android.text.style.StyleSpan; +import android.text.style.TypefaceSpan; import android.text.style.UnderlineSpan; import android.widget.TextView; @@ -94,12 +97,6 @@ public class HtmlParser{ ssb.append(textNode.text()); }else if(node instanceof Element el){ switch(el.nodeName()){ - case "p" -> { - Node sib=el.previousSibling(); - // compensate for missing empty line after to match the empty - // line added by the

before