MCPcopy Create free account
hub / github.com/ElementsProject/lightning / output_title

Function output_title

tools/fromschema.py:15–20  ·  view source on GitHub ↗

Add a title to the output

(title, underline='-', num_leading_newlines=1, num_trailing_newlines=2)

Source from the content-addressed store, hash-verified

13
14
15def output_title(title, underline='-', num_leading_newlines=1, num_trailing_newlines=2):
16 """Add a title to the output"""
17 print('\n' * num_leading_newlines + title, end='\n')
18 print(underline * len(title) + '\n' * num_trailing_newlines, end='')
19 global current_line_width
20 current_line_width = 0
21
22
23def esc_underscores(s):

Callers 5

generate_headerFunction · 0.85
generate_descriptionFunction · 0.85
generate_return_valueFunction · 0.85
generate_bodyFunction · 0.85
generate_footerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected