Fixed bug with tag-alignment when inserting text before the tags.