You could use the String.Replace method if you have the text with the lines needing to be removed in a string variable. It should be possible to remove them like:
This replaces each instance of a double carriage return [chr(13)] and line feed [chr(10)] with a single. Essentially replacing hitting the enter key twice with hitting it once when working in a text editor. This could probably be done with regex as well.