prefix-new-line-if-missing
text →
prefix-new-line-if-missing() → text
Prefixes the argument with a CRLF sequence unless it already starts with CRLF. Preserves null.
Parameters
This function has no parameters.
Examples
"Hello World" | prefix-new-line-if-missing → "Hello World" | prefix-new-line
"Hello World" | prefix-new-line | prefix-new-line-if-missing → "Hello World" | prefix-new-line
Kind: Function
Scope: text/concatenation
Aliases: text-to-prefix-new-line-if-missing