leaf_focus/report/processing/normalise.py
def collapse_spaces(self, value: str) -> str:
        """Collapse all instances of multiple consecutive spaces to one space."""
        if not value:
            return ""
        return self._collapse_spaces_re.sub(" ", value)
Collapse all instances of multiple consecutive spaces to one space.
Collapse all instances of multiple consecutive spaces to one space.
Collapse all instances of multiple consecutive spaces to one space .
def collapse_spaces(self, value: str) -> str:
        if not value:
            return ""
        return self._collapse_spaces_re.sub(" ", value)
def collapse_spaces ( self , value : str ) -> str : if not value : return "" return self . _collapse_spaces_re . sub ( " " , value )
Collapse all instances of multiple consecutive spaces to one space.
Collapse all instances of multiple consecutive spaces to one space .
"""Collapse all instances of multiple consecutive spaces to one space."""
self
value
str