MCPcopy Create free account
hub / github.com/Louisym/MiniCC / _normalize_content

Function _normalize_content

tutorials/16_prompt_building_and_compaction.py:147–149  ·  view source on GitHub ↗

标准化内容(合并空行)— 源码 prompt.rs:343-344

(content: str)

Source from the content-addressed store, hash-verified

145
146
147def _normalize_content(content: str) -> str:
148 """标准化内容(合并空行)— 源码 prompt.rs:343-344"""
149 return _collapse_blank_lines(content).strip()
150
151
152def _collapse_blank_lines(content: str) -> str:

Callers 1

Calls 1

_collapse_blank_linesFunction · 0.70

Tested by

no test coverage detected