For Illustrator write a Script with Regular Expressions in JavaScript that searches Line Breakes r and puts nothing instead. To edit that script this Link might help Perform grep search s nThe first sections are relevant.