onespace(
TEXT
)

The onespace( function removes all leading & trailing spaces and any extra spaces between words, so that there is exactly one and only one space between each word.


Parameters

This function has one parameter:

text – the original text.


Description

This function removes all leading & trailing spaces and any extra spaces between words, so that there is exactly one and only one space between each word.

onespace("     now is   the        time") ☞ now is the time

See also the onewhitespace( function, which also removes extra line breaks and tabs between words.

Note: This function is equivalent to:

arraystrip(thetext," ")

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.