telzine/dialazine/lib/common_tools.py
Tyrel Souza 5c2d5626d0
init
2023-07-29 23:26:31 -04:00

13 lines
439 B
Python

def index_header(include_linebreaks=True):
linebreak_char = ''
if include_linebreaks:
linebreak_char = '\n'
return linebreak_char + " [ INDEX ] " + linebreak_char
def index_item_string(option, title, author, include_linebreaks=True):
linebreak_char = ''
if include_linebreaks:
linebreak_char = '\n'
return linebreak_char + ("%s > %s < ...by %s" % (option, title, author)) + linebreak_char