MCPcopy Create free account
hub / github.com/defold/defold / _format_doc_lines

Function _format_doc_lines

scripts/dmsdk/gen_cpp.py:82–86  ·  view source on GitHub ↗
(lines, indent)

Source from the content-addressed store, hash-verified

80 lines.append(f'@{tag} {name} [type:{typ}] {desc}')
81
82def _format_doc_lines(lines, indent):
83 indent_str = get_indent(indent)
84 if isinstance(lines, str):
85 lines = lines.splitlines()
86 return ('\n' + indent_str + ' * ').join(lines)
87
88def gen_doc(docs, name, renamed, indent=1, language='C++'):
89 doc = _find_doc(docs, name)

Callers 1

gen_docFunction · 0.70

Calls 1

get_indentFunction · 0.70

Tested by

no test coverage detected