Comment supprimer les lignes vides
- Collez
- Supprimer les lignes vides
- Copiez
Text copied from PDFs or emails, and Excel columns, can contain many empty lines. "Remove empty lines" in Remove Duplicate Lines and Sort a List takes them out all at once.
Étapes
- Paste the text into "Before tidying (one per line)".
- Tick "Remove empty lines".
- If needed, also choose "Remove spaces at the start and end of lines".
- Check "After tidying" and copy with "Copy result".
Why empty lines increase
- Copying from a PDF inserts empty lines at page and paragraph breaks
- Email quoting inserts empty lines
- Pasting empty Excel cells gives empty lines
- Line breaks pile up as you edit
Combining with "Remove spaces at the start and end of lines"
To remove lines of only spaces, choose both "Remove spaces at the start and end of lines" and "Remove empty lines". The spaces go first, leaving empty lines, which are then deleted.
If you want to keep empty lines
If you want empty lines kept as paragraph breaks, do not choose this option. Paragraph breaks would disappear too.
Convient pour
- Tidying text copied from a PDF
- Pasting an Excel column and removing empty cells
- Eliminating empty lines in the middle of a list
Exemple
Pasting one Excel column left many empty cells, with 18 of 50 lines empty. "Remove empty lines" tidied it to 32 lines.
Common stumbling blocks
- Empty lines do not go: spaces are in them. Also choose "Remove spaces at the start and end of lines".
- All paragraphs joined: even the paragraph empty lines were removed.
- Line breaks mid-sentence: use the line-break tidying tool.
Frequently asked questions
How do I remove the line breaks themselves?
There is a separate tool that removes line breaks in text.
En résumé
Remove just the empty lines. For lines of only spaces, also choose the option that removes spaces.
Utiliser « Supprimer les doublons et trier une liste » (gratuit)Outils complémentaires
- Supprimer et nettoyer les sauts de ligne d'un texte: Nettoyez les sauts de ligne d'un texte copié depuis un PDF ou ailleurs.
- Compteur de caractères (candidatures et rapports): Comptez les caractères, les lignes et les feuilles de manuscrit de votre texte.
- Convertir pleine chasse, demi-chasse, hiragana et katakana: Convertissez pleine chasse/demi-chasse et hiragana/katakana.
Si ce guide vous a aidé, un petit pourboire nous ferait très plaisir.
Laisser un pourboire (300 ¥)Offrir un cadeau (liste d'envies Amazon)