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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -