MCPcopy Index your code
hub / github.com/LabPy/lantz / format_heading

Function format_heading

docs/driversdoc.py:61–64  ·  view source on GitHub ↗

Create a heading of [1, 2 or 3 supported].

(level, text)

Source from the content-addressed store, hash-verified

59
60
61def format_heading(level, text):
62 """Create a heading of <level> [1, 2 or 3 supported]."""
63 underlining = ['=', '-', '~', ][level-1] * len(text)
64 return '%s\n%s\n\n' % (text, underlining)
65
66
67def format_directive(module, package=None):

Callers 2

create_modules_toc_fileFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected