I have a problem with header in text view. I use: title.setText(Html.fromHtml(headerId)); to convert text to textview from html. Everything is ok but when I have or other header in html I get a html but with some space from margin. When I do some like this: title.setText(Html.fromHtml(Html.fromHtml(headerId).toString)); and build version and after that I rturned to old version, my header is in correct place on right side without any space.
This is how it look:

and this is how it should looks:

as you can see Cola Bare is aligned to right but when I start first time that header is not aligned. How I can do that to work from first run?
Edit That looks code from headerId:

I solve that problem by :
replaceAll("^<h1>\\s*","<h1>").replaceAll("^<h2>\\s*","<h2>").replaceAll("^<h3>\\s*","<h3>")