Testing Solution

Running this suggestion on this text:
First line\n    Second line, indented    four spaces\n   Three   spaces
123456789•123456789•123456789•123456789•123456789•123456789•123456789•

Result

Note a space was lost at the beginning of the last line.


123456789•123456789•123456789