TextBuffer

scala.xml.TextBuffer
See theTextBuffer companion object
class TextBuffer

The class TextBuffer is for creating text nodes without surplus whitespace. All occurrences of one or more whitespace in strings appended with the append method will be replaced by a single space character, and leading and trailing space will be removed completely.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def append(cs: Seq[Char]): TextBuffer.this.type

Appends this string to the text buffer, trimming whitespaces as needed.

Appends this string to the text buffer, trimming whitespaces as needed.

Attributes

def toText: Seq[Text]

Returns an empty sequence if text is only whitespace.

Returns an empty sequence if text is only whitespace.

Attributes

Returns

the text without whitespaces.

Concrete fields