Emacs package of the day: unfill https://github.com/purcell/unfill . This handy utility will undo M-q (fill-paragraph).