Skip to main content

normalise_description

Function normalise_description 

Source
pub fn normalise_description(description: Option<&str>) -> Option<String>
Expand description

Normalise a per-edge description from the wire/argument surface: trims surrounding whitespace and collapses empty / whitespace-only inputs to None. Applied at every mutation entry-point so the renderer never emits a bare em-dash followed by zero characters and the posture-validation step sees a canonical input.