in reply to Re: Remove newlines and join lines
in thread Remove newlines and join lines

Replacing the regex in my first answer with that one should work:
s/\s*(\w+)[\n\s]+([^\n]+)[\n\s]+/$1 $2\n/g;