MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _append_with_cont_indent

Function _append_with_cont_indent

openkb/agent/_markdown.py:153–158  ·  view source on GitHub ↗
(target: Text, source: Text, cont_indent: str)

Source from the content-addressed store, hash-verified

151
152
153def _append_with_cont_indent(target: Text, source: Text, cont_indent: str) -> None:
154 lines = source.split("\n", allow_blank=True)
155 for i, line in enumerate(lines):
156 if i > 0:
157 target.append("\n" + cont_indent)
158 target.append_text(line)
159
160
161def _render_code_as_text(node: Any) -> Text:

Callers 1

_render_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected