Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/917Dhj/DeepPaperNote
/ normalize_whitespace
Function
normalize_whitespace
scripts/common.py:95–96 ·
view source on GitHub ↗
(text: str)
Source
from the content-addressed store, hash-verified
93
94
95
def
normalize_whitespace(text: str) -> str:
96
return
re.sub(r
"\s+"
,
" "
, (text or
""
)).strip()
97
98
99
def
strip_tags(text: str) -> str:
Callers
15
build_figure_items
Function · 0.90
label_variants
Function · 0.90
match_snippet
Function · 0.90
_normalize_label_for_match
Function · 0.90
attach_candidate_images
Function · 0.90
build_items
Function · 0.90
build_section_extraction_coverage
Function · 0.90
appendix_section_for_page
Function · 0.90
build_appendix_evidence
Function · 0.90
text_chunks
Function · 0.90
first_chunks
Function · 0.90
looks_like_math_candidate
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected