java - How to prevent Android from inserting the trailing \n\n when SetText using Html.FromHtml()? -


i settext edittext way:

edittext.settext(html.fromhtml("<p><a href='#'>cadbury</a> fav chocolate</p>"); 

problem is, line inserts 2 additional breakpoints on edittext

when value using html.tohtml(edittext.gettext()) result is:

"<p><a href='#'>cadbury</a> fav chocolate</p>\n\n" 

i dont want trailing \n's, how remove them?


Comments

Popular posts from this blog

C++: Boost interprocess memory mapped file error -

python - IO.UnsupportedOperation: Not Writable -

python - Selecting distinct values from a column in Peewee -