You should use the following microflow expression:
replaceAll($Entity/StringAttr, '\s+', ' ')
This will transform texts such as 'Some text.
Some more text.'
into
'Some text. Some more text.'
The regex will also take literal strings, so just replacing all '\n' (without quotation marks) should work.