Insert space at the end of each line for text centering
This commit is contained in:
parent
d0c740a1a1
commit
73c1050f48
4
main.py
4
main.py
@ -59,9 +59,9 @@ def get_stats() -> str:
|
||||
# following line provides a neat finish
|
||||
fmt_percent = format(lang['percent'], '0.2f').zfill(5)
|
||||
data_list.append(
|
||||
f"{lang['name']}{' '*(pad + 3 - lth)}{lang['text']}{' '*(16 - ln_text)}{make_graph(lang['percent'])} {fmt_percent} %")
|
||||
f"{lang['name']}{' '*(pad + 3 - lth)}{lang['text']}{' '*(16 - ln_text)}{make_graph(lang['percent'])} {fmt_percent} % ")
|
||||
print("Graph Generated")
|
||||
data = ' \n'.join(data_list)
|
||||
data = '\n'.join(data_list)
|
||||
if show_title == 'true':
|
||||
print("Stats with Weeks in Title Generated")
|
||||
return '```text\n'+this_week()+'\n\n'+data+'\n```'
|
||||
|
Loading…
x
Reference in New Issue
Block a user