Padatkan Baris Baharu Berturut-turut (Kekalkan One Kosong Baris)

Clean up pasted teks by collapsing repeated kosong baris without removing meaningful single baris breaks.

You can also treat ruang putih-only baris as kosong baris and switch the output to LF or CRLF.

Semuanya berjalan secara setempat dalam pelayar anda. Teks anda tidak pernah dihantar ke pelayan.

Apa yang dilakukan alat ini

This alat is for teks that became too airy after salin and paste. It keeps normal baris breaks in place, compresses only runs of kosong baris, and lets you choose whether to kekalkan one kosong baris, kekalkan more, or buang kosong baris entirely.

Cara guna

  1. Paste teks into the input area.
  2. Choose the kosong-baris limit and decide whether ruang putih-only baris should bilangan as kosong.
  3. Click Mampatkan, then salin or muat turun the hasil.

Contoh

Kekalkan satu baris kosong

Masukan

Perenggan 1


Perenggan 2



Perenggan 3

Keluaran

Perenggan 1

Perenggan 2

Perenggan 3

Buang baris kosong entirely

Masukan

A\n\n\nB\n\nC

Keluaran

A\nB\nC

Anggap baris hanya ruang putih sebagai kosong

Masukan

Tajuk
(baris hanya ruang)
(baris hanya tab)
Isi

Keluaran

Tajuk

Isi

Glosari

Baris kosong

A baris with no actual content. This alat can optionally treat ruang putih-only baris as kosong baris too.

Baris baharu berturut-turut

In practice, this means a run of kosong baris. A single baris break inside normal teks is not the main target.

LF / CRLF

Two common baris-ending formats. LF is typical on the web and Unix-like systems, while CRLF is common in Windows editors.

Soalan Lazim

Does it buang every baris break?

No. By default it keeps single baris breaks and collapses only repeated kosong baris. If you choose Buang baris kosong, it membuang empty baris while keeping normal baris separation between content baris.

Can it treat space-only baris as kosong baris?

Yes. It is enabled by default. Baris that contain only spaces, tabs, NBSP, or full-width spaces can be dimampatkan as kosong baris.

Can it pangkas kosong baris at the start and end?

Yes. In lanjutan options, switch Baris kosong di awal/akhir between Pangkas and Kekalkan.

Bolehkah saya keluarkan CRLF untuk alat Windows?

Yes. Ubah Penamat baris output from LF to CRLF in lanjutan options.

Is my teks uploaded anywhere?

No. The transformation happens entirely in your pelayar, and the alat does not send your teks to a server.

Nota

  • This alat does not reflow paragraphs or join single baris breaks into sentences. It is intentionally focused on kosong-baris cleanup.
  • If Anggap baris hanya ruang putih sebagai kosong is off, baris containing only spaces or tabs remain untouched.
  • If Pangkas trailing spaces is off, invisible end-of-baris spacing may remain in the output.