joinNonEmptyLines

Summary

Condenses multiple non-empty lines of text into a single line of text.

Signatures

Click on a signature to select it and view its documentation.

Usage

public string joinNonEmptyLines()

Returns

A string representing all the non-empty lines joined together.

Description

The lines will be joined by a single space (" ").

Examples

Basic Usage
1
2
3
4
5
6
7
8
9
10
import System;
 
string text =
    """
    The quick brown fox
 
    jumped over the lazy dog.
    """;
 
Console.log(text.joinNonEmptyLines()); // "The quick brown fox jumped over the lazy dog."

Share

HTML | BBCode | Direct Link