It turns out that there are several hits for things like this. Those on the list who actually know elisp can perhaps decide which is the most robust implementation. Here's some more (did not try these... just digging them up and providing links):
Before hitting send I decided to look around and see what I found. Check this out!! [1],-----| (defun unfill-region (begin end)| "Remove all linebreaks in a region but leave paragraphs, indented text| (quotes, code) and lines starting with an asterisk (lists) intact"| (interactive "r")| (replace-regexp "\\([^\n]\\)\n\\([^ *\n]\\)" "\\1 \\2" nil begin end))`-----I tried it out and it worked great (added to .emacs, reloaded, and used M-x unfill-region RET). I tried it with two headings each with multiple lines of text under them and unfilled the whole buffer. It leaves the headers on their own lines and turns each paragraph into a long line of text that exported perfectly to a run-on html blob with C-u C-c C-e R.Would that work?John