telzine/dialazine/lib/common_tools.py

13 lines
439 B
Python
Raw Normal View History

2023-07-30 03:26:31 +00:00
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