Whitespace
Description
The Whitespace class is used to determine when to output whitespace characters in a flow of inline nodes (according to the ITextContentNode.Flags flags).
Public / Methods
Collapse
Collapses all consecutive whitespace characters (see FormattingUtil.IsWhitespace) in the given text to single ' '
, trimming both leading and trailing whitespaces.
Consume
2 overloads
Consumes the given text node for updating the whitespace flags.
The method assumes that a whitespace will be emitted iff it returns true
and that the text content of node opt will be output after that.
Consumes the given text node flags for updating the whitespace flags.
The method assumes that a whitespace will be emitted iff it returns true
and that the text content belonging to flags in will be output after that.
Require
The need for a whitespace exists.
NeedsWhitespace will return true
after this method has been called.
Satisfy
The need for a whitespace has been satisfied.
HasWhitespace will return true
after this method has been called.