cleanws takes multi-line, code formatted strings and just formats them as simple strings

cleanws(string)

Arguments

string

string to clean

Value

A string with all consecutive whitespace characters, including tabs and newlines, merged into a single space.