From a7a29db8d584522aedbb44c7602111bfcf6e7547 Mon Sep 17 00:00:00 2001 From: sk Date: Wed, 30 Nov 2022 10:51:25 +0100 Subject: [PATCH] improve list rendering implementation --- .../org/joinmastodon/android/ui/text/HtmlParser.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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 000b70969..20612a335 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 @@ -91,12 +91,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