Cách xóa dòng trống
- Dán
- Xóa dòng trống
- Sao chép
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.
Các bước
- 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.
Phù hợp với
- Tidying text copied from a PDF
- Pasting an Excel column and removing empty cells
- Eliminating empty lines in the middle of a list
Ví dụ
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.
Tóm tắt
Remove just the empty lines. For lines of only spaces, also choose the option that removes spaces.
Dùng “Xóa dòng trùng lặp và sắp xếp danh sách” (miễn phí)Công cụ hay dùng cùng
- Xóa và dọn dấu xuống dòng trong văn bản: Dọn dấu xuống dòng trong văn bản sao chép từ PDF và nơi khác.
- Đếm ký tự (cho đơn xin và báo cáo): Đếm ký tự, dòng và trang bản thảo của văn bản.
- Chuyển đổi chữ toàn chiều rộng, nửa chiều rộng, Hiragana và Katakana: Chuyển đổi chữ toàn chiều rộng/nửa chiều rộng và hiragana/katakana.
Nếu hướng dẫn này hữu ích, một khoản ủng hộ nhỏ sẽ là niềm động viên lớn.
Gửi tiền ủng hộ (¥300)Tặng quà (danh sách mong muốn Amazon)