MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _collapse_whitespace

Function _collapse_whitespace

agents/coldstart-agent/main.py:583–585  ·  view source on GitHub ↗

Normalize arbitrary text into a single-line string.

(value: Any)

Source from the content-addressed store, hash-verified

581
582
583def _collapse_whitespace(value: Any) -> str:
584 """Normalize arbitrary text into a single-line string."""
585 return re.sub(r"\s+", " ", str(value or "")).strip()
586
587
588def _strip_html(value: str) -> str:

Callers 13

_strip_htmlFunction · 0.85
_parse_author_namesFunction · 0.85
_normalize_person_nameFunction · 0.85
_dedupe_preserve_orderFunction · 0.85
_html_to_text_linesFunction · 0.85
parse_research_homepageFunction · 0.85
_build_scholar_heat_mapsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected