I was utterly amazed there was no solution for this online. When searching for replace tabs and multiple spaces with single space and keep line breaks
all that came up was search results for REMOVING the line breaks but nothing for keeping the line breaks alone or intact..
The first replace replaces all tabs with spaces and the second replace function replaces multiple spaces with single space.