Bug-fix for AdjustPrePad, use textWidth and do not look for html tags
(entities are filtered before and <, > might be in the text) bnc #803466