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

Method prettify_doc

PythonAPI/docs/doc_gen.py:95–99  ·  view source on GitHub ↗
(self, doc)

Source from the content-addressed store, hash-verified

93 return join(['```', language, '\n', self.list_depth(), buf, '\n', self.list_depth(), '```\n'])
94
95 def prettify_doc(self, doc):
96 punctuation_marks = ['.', '!', '?']
97 doc = doc.strip()
98 doc += '' if doc[-1:] in punctuation_marks else '.'
99 return doc
100
101
102def italic(buf):

Callers 4

gen_bodyMethod · 0.95
add_doc_method_paramFunction · 0.80
add_doc_methodFunction · 0.80
add_doc_inst_varFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected