Improvements in text formatting