Format title for text with leading whitespace and long lines