Collapse Spaces Keep NL

Collapse spaces/tabs; keep newlines.

Collapses runs of spaces/tabs per line and trims. Unlike Collapse Whitespace this keeps line breaks. Empty fails.

What Collapse Spaces Keep NL does

Collapses runs of spaces/tabs per line and trims. Unlike Collapse Whitespace this keeps line breaks. Empty fails.

Collapse Spaces Keep NL sits in the Text group on purpose. It is not Collapse Whitespace (Squeeze spaces/tabs; optional end trim.) and not Trim Lines (Trim whitespace on each line by side.). Choose this page when you need Collapse spaces/tabs; keep newlines. If you stretch Collapse Spaces Keep NL into a neighbor’s job, the result will look wrong even though the site chrome looks the same.

How to use Collapse Spaces Keep NL

  1. Keep this tab on Collapse Spaces Keep NL (/text/collapse-spaces-keep-nl). Pasting into the wrong Text tool (for example Collapse Whitespace) changes the job.
  2. Paste or type the input Collapse Spaces Keep NL expects. Path hint: text · collapse spaces keep nl. Collapse spaces/tabs; keep newlines.
  3. Apply the Collapse Spaces Keep NL action only. Trim Lines is a different transform (Trim whitespace on each line by side.). Collapses runs of spaces/tabs per line and trims. Unlike Collapse Whitespace this keeps line breaks. Empty fails.
  4. Copy the output of Collapse Spaces Keep NL if you need it elsewhere. Size/complexity still follows: Non-empty text.
  5. If the text job is actually Squeeze spaces/tabs; optional end trim., leave Collapse Spaces Keep NL and open Collapse Whitespace.

When not to use Collapse Spaces Keep NL

Skip Collapse Spaces Keep NL when a neighbor tool matches better — start with Collapse Whitespace or Trim Lines — or when the description already warns the job will fail. In the tool’s own words: Collapses runs of spaces/tabs per line and trims. Unlike Collapse Whitespace this keeps line breaks. Empty fails.

Questions about Collapse Spaces Keep NL

What does Collapse Spaces Keep NL do that other Text pages on this site do not?
Collapses runs of spaces/tabs per line and trims. Unlike Collapse Whitespace this keeps line breaks. Empty fails. Short version: Collapse spaces/tabs; keep newlines.
Does Collapse Spaces Keep NL upload my file or text to Tool-You servers?
No. Collapse Spaces Keep NL runs in this browser tab. Files stay on the device. Limit note: Non-empty text.
Should I use Collapse Whitespace instead of Collapse Spaces Keep NL?
Use Collapse Spaces Keep NL when you need Collapse spaces/tabs; keep newlines. Use Collapse Whitespace when you need Squeeze spaces/tabs; optional end trim. They share a category (Text) but not the same job.
What are the limits of Collapse Spaces Keep NL?
Non-empty text. Also: Collapses runs of spaces/tabs per line and trims. Unlike Collapse Whitespace this keeps line breaks. Empty fails.