fix handling of return key in styled text