util_one_line


Description:


public string util_one_line (string text)

Fold text onto a single line, replacing every carriage return, line feed, tabulation and Unicode line break -- the next-line, line and paragraph separators (U+0085, U+2028, U+2029), which Pango breaks a line at too -- with a space.

This is what everything displaying an item in a one-line context — the command line's --oneline, the history rows, the search provider's results — has to do to it first.

Parameters:

text

the initial text

Returns:

the newly allocated string


Namespace: GPaste
Package: gpaste-3