How to use the Whitespace Cleaner.
Whitespace can carry meaning in code and fixed-width data. State whether to trim edges, collapse spaces or remove blank lines.
Make the workflow fit your task.
Identify which whitespace operations are wanted: edge trimming, repeated-space collapse or removal of empty lines. Protect code, tables and deliberate line breaks. Show the transformed text and a short change summary so formatting loss is easy to spot.
- What you provide
- Text and spacing requirements.
- What you get
- Normalized spaces, tabs and blank lines.
See the input and the result.
Illustrative input and output · a teaching example, not a live WebAct run
Example input
Plain text: two spaces before Hello, three spaces between Hello and world.
Completed example
With edge trimming and repeated-space collapse: Hello world.
Load this input into the prompt, then copy it to WebAct to try the task. Your result may differ from the illustration.
Decisions and troubleshooting.
Should whitespace cleanup collapse every line break?
Only when the text should become a single paragraph. Paragraph breaks and list structure often carry useful meaning.
Why does text still look uneven after ordinary spaces are removed?
Nonbreaking spaces or other Unicode whitespace may remain. Inspect the actual characters before applying broader normalization.
Try it with your own source.
Replace the example with your material in the task prompt. Keep the requirements you need, then copy the task into WebAct.
Customize and copy the task ↑