onewhitespace(
TEXT
)

The onewhitespace( function removes all leading spaces and any extra whitespace between words, making sure that there is one and only one space between each word.


Parameters

This function has one parameter:

text – the original text.


Description

This function removes all leading spaces and any extra whitespace between words, making sure that there is one and only one space between each word. Other whitespace characters (carriage returns, tabs) are converted to spaces and removed if there are more than one between words.

onewhitespace("    now is   the "+tab()+"time"+cr()+cr()+"line three"+cr()+cr()+"five")
    ☞ now is the time line three five

Note: This function is equivalent to:

arraystrip(replace(replace(thetext,cr()," "),tab()," ")," ")

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.