ਲਗਾਤਾਰ ਨਿਊਲਾਈਨਾਂ ਨੂੰ ਸੰਕੋਚੋ (ਇੱਕ ਖਾਲੀ ਲਾਈਨ ਰੱਖੋ)

Clean up pasted ਲਿਖਤ by collapsing repeated ਖਾਲੀ ਲਾਈਨਾਂ without removing meaningful single ਲਾਈਨ breaks.

You can also treat whitespace-only ਲਾਈਨਾਂ as ਖਾਲੀ ਲਾਈਨਾਂ and switch the ਆਉਟਪੁੱਟ to LF or CRLF.

Everything runs locally in your ਬ੍ਰਾਊਜ਼ਰ. Your ਲਿਖਤ is never sent to a ਸਰਵਰ.

ਇਹ ਟੂਲ ਕੀ ਕਰਦਾ ਹੈ

This ਟੂਲ is for ਲਿਖਤ that became too airy after ਕਾਪੀ and paste. It keeps normal ਲਾਈਨ breaks in place, compresses only runs of ਖਾਲੀ ਲਾਈਨਾਂ, and lets you choose whether to ਰੱਖੋ one ਖਾਲੀ ਲਾਈਨ, ਰੱਖੋ more, or ਹਟਾਓ ਖਾਲੀ ਲਾਈਨਾਂ entirely.

ਵਰਤੋਂ ਦਾ ਤਰੀਕਾ

  1. Paste ਲਿਖਤ into the ਇਨਪੁੱਟ area.
  2. Choose the ਖਾਲੀ-ਲਾਈਨ limit and decide whether whitespace-only ਲਾਈਨਾਂ should count as ਖਾਲੀ.
  3. Click ਸੰਕੋਚੋ, then ਕਾਪੀ or ਡਾਊਨਲੋਡ the ਨਤੀਜਾ.

ਉਦਾਹਰਨਾਂ

ਰੱਖੋ one ਖਾਲੀ ਲਾਈਨ

ਇਨਪੁੱਟ

ਪੈਰਾ 1


ਪੈਰਾ 2



ਪੈਰਾ 3

ਆਉਟਪੁੱਟ

ਪੈਰਾ 1

ਪੈਰਾ 2

ਪੈਰਾ 3

ਹਟਾਓ ਖਾਲੀ ਲਾਈਨਾਂ entirely

ਇਨਪੁੱਟ

A\n\n\nB\n\nC

ਆਉਟਪੁੱਟ

A\nB\nC

Treat whitespace-only ਲਾਈਨਾਂ as ਖਾਲੀ

ਇਨਪੁੱਟ

ਸਿਰਲੇਖ
(ਸਿਰਫ਼ spaces ਵਾਲੀ ਲਾਈਨ)
(ਸਿਰਫ਼ tab ਵਾਲੀ ਲਾਈਨ)
ਮੁੱਖ ਭਾਗ

ਆਉਟਪੁੱਟ

ਸਿਰਲੇਖ

ਮੁੱਖ ਭਾਗ

ਸ਼ਬਦਾਵਲੀ

ਖਾਲੀ ਲਾਈਨ

A ਲਾਈਨ with no actual content. This ਟੂਲ can optionally treat whitespace-only ਲਾਈਨਾਂ as ਖਾਲੀ ਲਾਈਨਾਂ too.

ਲਗਾਤਾਰ ਨਿਊਲਾਈਨਾਂ

In practice, this means a run of ਖਾਲੀ ਲਾਈਨਾਂ. A single ਲਾਈਨ break inside normal ਲਿਖਤ is not the main ਲਕਸ਼.

LF / CRLF

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

ਅਕਸਰ ਪੁੱਛੇ ਜਾਣ ਵਾਲੇ ਸਵਾਲ

ਕੀ ਇਹ ਹਰ ਲਾਈਨ break ਹਟਾ ਦਿੰਦਾ ਹੈ?

No. By default it keeps single ਲਾਈਨ breaks and collapses only repeated ਖਾਲੀ ਲਾਈਨਾਂ. If you choose ਹਟਾਓ ਖਾਲੀ ਲਾਈਨਾਂ, it removes empty ਲਾਈਨਾਂ while keeping normal ਲਾਈਨ separation between content ਲਾਈਨਾਂ.

ਕੀ ਇਹ ਕੇਵਲ space ਵਾਲੀਆਂ ਲਾਈਨਾਂ ਨੂੰ ਖਾਲੀ ਲਾਈਨ ਮੰਨ ਸਕਦਾ ਹੈ?

Yes. It is enabled by default. ਲਾਈਨਾਂ that contain only spaces, tabs, NBSP, or full-width spaces can be compressed as ਖਾਲੀ ਲਾਈਨਾਂ.

ਕੀ ਇਹ ਸ਼ੁਰੂ ਅਤੇ ਅੰਤ ਵਾਲੀਆਂ ਖਾਲੀ ਲਾਈਨਾਂ ਟ੍ਰਿਮ ਕਰ ਸਕਦਾ ਹੈ?

Yes. In ਤਕਨੀਕੀ ਵਿਕਲਪ, switch Leading/trailing ਖਾਲੀ ਲਾਈਨਾਂ between ਟ੍ਰਿਮ and ਰੱਖੋ.

Can I ਆਉਟਪੁੱਟ CRLF for Windows ਟੂਲ?

Yes. ਬਦਲਾਅ ਆਉਟਪੁੱਟ ਲਾਈਨ ending from LF to CRLF in ਤਕਨੀਕੀ ਵਿਕਲਪ.

ਕੀ ਮੇਰੀ ਲਿਖਤ ਕਿਤੇ upload ਹੁੰਦੀ ਹੈ?

No. The transformation happens entirely in your ਬ੍ਰਾਊਜ਼ਰ, and the ਟੂਲ does not send your ਲਿਖਤ to a ਸਰਵਰ.

ਨੋਟਸ

  • This ਟੂਲ does not reflow paragraphs or join single ਲਾਈਨ breaks into sentences. It is intentionally focused on ਖਾਲੀ-ਲਾਈਨ ਸਫ਼ਾਈ.
  • If Treat whitespace-only ਲਾਈਨਾਂ as ਖਾਲੀ is off, ਲਾਈਨਾਂ containing only spaces or tabs remain untouched.
  • If ਟ੍ਰਿਮ trailing spaces is off, invisible end-of-ਲਾਈਨ spacing may remain in the ਆਉਟਪੁੱਟ.