Correct text span formatting