Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
120
def
normalize_whitespace(text: str) -> str:
121
return
re.sub(r
"\s+"
,
" "
, text).strip()
122
123
124
def
strip_html_comments(text: str) -> str:
Callers
3
cleanup_markdown_text
Function · 0.85
cleanup_title
Function · 0.85
markdown_sections
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected