Remove Extra Line Breaks

I want to view my inbox in plain text format but most of the emails contain extra line breaks that look super annoying. Is there a way to remove them automatically?