MCPcopy Create free account
hub / github.com/NVIDIA/NeMo-Relay / _paragraphs

Function _paragraphs

scripts/docs/generate_node_library_reference.py:105–117  ·  view source on GitHub ↗
(lines: list[str])

Source from the content-addressed store, hash-verified

103
104
105def _paragraphs(lines: list[str]) -> list[str]:
106 paragraphs: list[str] = []
107 current: list[str] = []
108 for line in lines:
109 if not line.strip():
110 if current:
111 paragraphs.append(_escape_text(_collapse_words(" ".join(current))))
112 current = []
113 continue
114 current.append(line.strip())
115 if current:
116 paragraphs.append(_escape_text(_collapse_words(" ".join(current))))
117 return paragraphs
118
119
120def _clean_jsdoc_line(line: str) -> str:

Callers 1

_parse_jsdocFunction · 0.85

Calls 3

_collapse_wordsFunction · 0.85
joinMethod · 0.80
_escape_textFunction · 0.70

Tested by

no test coverage detected