Normalizes line endings and optionally trims whitespace, squishes repeated spaces, and compresses consecutive blank lines.
Arguments
- x
Character vector to clean.
- trim
Logical indicating whether to trim leading and trailing whitespace on each line.
- squish_whitespace
Logical indicating whether to collapse repeated internal whitespace on each line.
- squash_blank_lines
Logical indicating whether to compress repeated blank lines to a single blank line.
