Bug fix: Word wrap didn't calculate the width correctly when text had new lines.