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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -