Improve quoted text generation