Fix for VTab and underline bug

Fixes issue #442 and moves code for line creation in a seperate method