mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
2c6db3dd95
--print-space-areas already computed the IfcSpace area for the visible text label, but did not expose it as a machine-readable attribute on the SVG group, forcing consumers to parse the label text. Reuse the existing per-element data-name/data-guid attribute convention (also namespaced via --svg-xmlns as ifc:area) to carry it. Also fix the area label text double-escaping its "m²" entity: IfcUtil::escape_xml() unconditionally escapes "&", so the pre-encoded entity was turned into the literal "m²" once the label passed through escaping. Emit the raw UTF-8 bytes for U+00B2 instead, which are not affected by XML escaping. Generated with the assistance of an AI coding tool.