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++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -