|
| updateSeparatorConstraints (Node $nodeA, DOMHandler $sepHandlerA, Node $nodeB, DOMHandler $sepHandlerB) |
| Figure out separator constraints and merge them with existing constraints in state so that they can be emitted when the next content emits source.
|
|
| __construct (Env $env, SerializerState $state) |
|
| recoverTrimmedWhitespace (Node $node, bool $leading) |
| Emit a separator based on the collected (and merged) constraints and existing separator text.
|
|
| buildSep (Node $node) |
| Emit a separator based on the collected (and merged) constraints and existing separator text.
|
|
|
static | debugOut (Node $node) |
|
◆ buildSep()
Wikimedia\Parsoid\Html2Wt\Separators::buildSep |
( |
Node | $node | ) |
|
Emit a separator based on the collected (and merged) constraints and existing separator text.
Called when new output is triggered.
- Parameters
-
- Returns
- string|null
◆ recoverTrimmedWhitespace()
Wikimedia\Parsoid\Html2Wt\Separators::recoverTrimmedWhitespace |
( |
Node | $node, |
|
|
bool | $leading ) |
Emit a separator based on the collected (and merged) constraints and existing separator text.
Called when new output is triggered.
- Parameters
-
Node | $node | |
bool | $leading | if true, trimmed leading whitespace is emitted if false, trimmed trailing whitespace is emitted |
- Returns
- string|null
◆ updateSeparatorConstraints()
Wikimedia\Parsoid\Html2Wt\Separators::updateSeparatorConstraints |
( |
Node | $nodeA, |
|
|
DOMHandler | $sepHandlerA, |
|
|
Node | $nodeB, |
|
|
DOMHandler | $sepHandlerB ) |
Figure out separator constraints and merge them with existing constraints in state so that they can be emitted when the next content emits source.
- Parameters
-
Node | $nodeA | |
DOMHandler | $sepHandlerA | |
Node | $nodeB | |
DOMHandler | $sepHandlerB | |
The documentation for this class was generated from the following file:
- src/Html2Wt/Separators.php