Remove empty lines
Paste text: every empty line goes, and your lines close up.
What does it do to a real text?
A form copied with gaps in it (the line after Pune holds three spaces):
Before
Name: Asha⏎
⏎
⏎
City: Pune⏎
⏎
PIN: 411001⏎
⏎
After
Name: Asha⏎
City: Pune⏎
PIN: 411001
Removed 5 empty lines.
⏎ marks a line break, and a short name in a box a hidden character.
More examples
With Leave one between blocks:
Before
Name: Asha⏎
⏎
⏎
City: Pune⏎
⏎
PIN: 411001⏎
⏎
Leave one between blocks
Name: Asha⏎
⏎
City: Pune⏎
⏎
PIN: 411001
What rules does it follow?
- An empty line holds nothing. With A line of only spaces on, a line of spaces or tabs counts as empty too.
The other 3 rules
- Remove them all: every empty line goes.
- Leave one between blocks: where empty lines come together, one stays; empty lines at the very start and end go.
- Lines with text in them are never changed, and their order stays.
What do people ask?
How do I remove the line breaks between lines?
When an empty line stands between your lines, this tool closes the gaps. To join the lines themselves into running text, use Remove line breaks.
Why is a line that looks empty still there?
It holds a character you cannot see, such as a zero width space. Remove invisible characters shows it by name and removes it.