MCPcopy 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
95def normalize_whitespace(text: str) -> str:
96 return re.sub(r"\s+", " ", (text or "")).strip()
97
98
99def strip_tags(text: str) -> str:

Callers 15

build_figure_itemsFunction · 0.90
label_variantsFunction · 0.90
match_snippetFunction · 0.90
attach_candidate_imagesFunction · 0.90
build_itemsFunction · 0.90
build_appendix_evidenceFunction · 0.90
text_chunksFunction · 0.90
first_chunksFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected