NightWhistler / HtmlSpanner

Android HTML rendering library with CSS support
http://nightwhistler.github.io/HtmlSpanner/
868 stars 209 forks source link

Bug: too many line-breaks between un-ordered list and text #56

Open AndroidDeveloperLB opened 6 years ago

AndroidDeveloperLB commented 6 years ago

Suppose you have this :

val inputXmlString = "Aaa<br/><b>Bbb<br/></b>Ccc<br/><ul><li>Ddd</li><li>eee</li></ul>fff<br/><ol><li>ggg</li><li>hhh</li></ol>"
textView.text = HtmlSpanner().fromHtml(inputXmlString)

I get this :

image

Before "fff" there is no extra line breaks...

Xiaxiangjing commented 1 year ago

Yes, I also have this problem. There are too many newlines between paragraphs, which take up a lot of space