A family of Microsoft word processing software products for creating web, email, and print documents.
Assuming that there is a paragraph break at the end of each line, use the Replace dialog to find ^p (a paragraph mark) and replace it with a comma and space. If there are two paragraph marks, search for ^p^p and replace with comma and space.