MCPcopy Create free account
hub / github.com/crisxuan/bestJavaer / preserve_shape

Function preserve_shape

scripts/check_article_quality.py:182–183  ·  view source on GitHub ↗
(match: re.Match[str])

Source from the content-addressed store, hash-verified

180
181
182def preserve_shape(match: re.Match[str]) -> str:
183 return "".join("\n" if char == "\n" else " " for char in match.group(0))
184
185
186def mask_ignored_markdown_blocks(text: str) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected