MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / code_block

Method code_block

PythonAPI/docs/doc_gen.py:92–93  ·  view source on GitHub ↗
(self, buf, language='')

Source from the content-addressed store, hash-verified

90 self._data = join([self._data, buf])
91
92 def code_block(self, buf, language=''):
93 return join(['```', language, '\n', self.list_depth(), buf, '\n', self.list_depth(), '```\n'])
94
95 def prettify_doc(self, doc):
96 punctuation_marks = ['.', '!', '?']

Callers

nothing calls this directly

Calls 2

list_depthMethod · 0.95
joinFunction · 0.70

Tested by

no test coverage detected