Skip to content

Bars Specification 0.1.0 — Transform: strip_newlines

Category: string · Since: 0.1.0

Removes newline characters.

Removes every CR (\r) and LF (\n) character from the string-coerced input.

Input coercion: string

Arguments

None.

Arity: 0–0

Worked examples

[{{ phrase | strip_newlines }}]

[abc]
[{{ phrase | strip_newlines }}]

[ab     c]

Full fixture: transforms/transform-strip_newlines.json