Appends this string to the text buffer, trimming whitespaces as needed.
Returns an empty sequence if text is only whitespace.
Returns an empty sequence if text is only whitespace.
the text without whitespaces.
The class
TextBufferis for creating text nodes without surplus whitespace. All occurrences of one or more whitespace in strings appended with theappendmethod will be replaced by a single space character, and leading and trailing space will be removed completely.