Clean spacing without flattening the document
The preset converts Unicode spaces, changes tabs to spaces, collapses repeated horizontal whitespace and removes spaces at line endings. Paragraph breaks remain available for readable output.
For source code, use the narrower trailing-whitespace option because indentation can be meaningful.