MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / normalize_whitespace

Function normalize_whitespace

tools/commitlist.py:120–121  ·  view source on GitHub ↗
(text: str)

Source from the content-addressed store, hash-verified

118
119
120def normalize_whitespace(text: str) -> str:
121 return re.sub(r"\s+", " ", text).strip()
122
123
124def strip_html_comments(text: str) -> str:

Callers 3

cleanup_markdown_textFunction · 0.85
cleanup_titleFunction · 0.85
markdown_sectionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected