Reconstructs a <highlight> node’s real text, restoring literal spaces.

Doxygen’s <programlisting> encodes each source-code space as its own empty <sp/> element rather than a literal space character (so it can preserve exact source formatting even through XML whitespace handling) – element.itertext() silently drops these (they carry no text), collapsing e.g. “int x = 1;” into “intx=1;”. Confirmed real via a real doxygen capture (DEL-B40).

Returns:

The element’s text content with every <sp/> restored as a space.

Methods

_render_highlight_text

_render_highlight_text(elem: A (or nested) XML element from a.) -> str

Reconstructs a <highlight> node’s real text, restoring literal spaces.

Doxygen’s <programlisting> encodes each source-code space as its own empty <sp/> element rather than a literal space character (so it can preserve exact source formatting even through XML whitespace handling) – element.itertext() silently drops these (they carry no text), collapsing e.g. “int x = 1;” into “intx=1;”. Confirmed real via a real doxygen capture (DEL-B40).

Returns:

The element’s text content with every <sp/> restored as a space.

ParameterTypeDescription
elemA (or nested) XML element from a.

Generated with Flude

Copyright © 2026