MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _normalise

Function _normalise

tools/skillgen/gen.py:333–336  ·  view source on GitHub ↗

Force LF newlines and exactly one trailing newline.

(text: str)

Source from the content-addressed store, hash-verified

331
332
333def _normalise(text: str) -> str:
334 """Force LF newlines and exactly one trailing newline."""
335 text = text.replace("\r\n", "\n").replace("\r", "\n")
336 return text.rstrip("\n") + "\n"
337
338
339@dataclass(frozen=True)

Callers 4

_read_fragmentFunction · 0.85
_render_coreFunction · 0.85
_render_agents_md_hooksFunction · 0.85
monolith_roundtripFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected