fn trim_text_nodes(
    text_elem_id: NodeId,
    xmlspace: XmlSpace,
    doc: &mut Document<'_>,
)Expand description
Prepares text nodes according to the spec: https://www.w3.org/TR/SVG11/text.html#WhiteSpace
This function handles:
- ‘xml:space’ processing
 - tabs and newlines removing/replacing
 - spaces trimming