For example (note that \n
is a newline):
?- normalize_space(atom(Out), ' \nhello\nworld '). Out = 'hello world'.
Did you know ... | Search Documentation: |
White space normalization |
\u0020
)
character. Out uses the same conventions as with_output_to/2
and format/3.
For example (note that \n
is a newline):
?- normalize_space(atom(Out), ' \nhello\nworld '). Out = 'hello world'.