textContent
How text-node whitespace is handled
| Type | "collapse" | "maintain" | "prettify" |
| Default | "maintain" |
Values
Input
<text> hello world </text>
"collapse"
Collapse whitespace runs to single spaces.
<text>
hello world
</text>
"maintain"
Preserve relative indentation structure.
<text>
hello world
</text>
"prettify"
Trim each line and re-indent to SVG depth.
<text>
hello world
</text>
Config
{
"svg": {
"textContent": "maintain"
}
}