Added function to remove internal extra line breaks and turn them into a single one.