MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / normalize_whitespace

Function normalize_whitespace

scripts/developer-guide/run_languagetool.py:197–203  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

195
196
197def normalize_whitespace(text):
198 text = _HORIZONTAL_WS_RE.sub(" ", text)
199 text = _TRAILING_WS_RE.sub("\n", text)
200 text = _REPEAT_PLACEHOLDER_RE.sub(INLINE_SKIP_PLACEHOLDER, text)
201 text = _ARTICLE_PLACEHOLDER_RE.sub(INLINE_SKIP_PLACEHOLDER, text)
202 text = _HORIZONTAL_WS_RE.sub(" ", text)
203 return text
204
205
206def extract_text(html_path):

Callers 1

extract_textFunction · 0.85

Calls 1

subMethod · 0.45

Tested by

no test coverage detected