← All nodes
Unstructured Text

Remove Empty Lines

Delete every blank line, including lines that only contain spaces or tabs.

When to use it

Typical uses: Compacting lists copied from web pages or documents; Preparing lines for import into a spreadsheet; Cleaning log files and exported data.

In a pipeline

Settings

SettingTypeRequiredDefault or hint
Text columnselect—Text
Generate New Columncheckbox—false
New Column Nametext—Default: <column> Result
Insert Afterselect—After the column
When a value cannot be convertedselect—stop

Example

Remove Empty Lines: an example

    Text arriving
    Text
    First item Second item Third item
    The text after this node
    Text
    First item Second item Third item

    Worth knowing

    • Will it change the lines that contain text? No. Lines with content are left exactly as they are, including their leading spaces.
    • Can I keep a single blank line between paragraphs? This tool removes all blank lines. To join wrapped lines while keeping paragraphs, use Remove Line Breaks.
    • Does it work with Windows line endings? Yes. Both CRLF and LF line endings are handled.
    • Works on any text column, not only Text Input's: pick it under Text column. Tick Generate New Column to keep the original next to the result.

    Others in Unstructured Text