1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 13:02:38 +00:00

Fix formatting logic

This commit is contained in:
Dylan Dizon 2018-11-15 19:34:48 -05:00
parent eab73cb62b
commit c223eb82ed

View file

@ -51,9 +51,9 @@ async def paginate(
elif type(i) is dict:
if not i:
i = {'': ' '}
i = {' ': ' '}
for k, e in sorted(i.items()):
paginator.add_line(kprefix if k else '' + k + ksuffix if k else '' + eprefix + f'{ejoin}'.join(e) + esuffix)
paginator.add_line(kprefix + k + ksuffix + eprefix + f'{ejoin}'.join(e) + esuffix)
if end:
paginator.add_line(end)