Switch to dynamic length padding for index numbers
This commit is contained in:
parent
bdd6f37118
commit
b83bfe5687
1 changed files with 1 additions and 1 deletions
2
build.py
2
build.py
|
@ -60,7 +60,7 @@ def build_index(yaml, prefix):
|
|||
|
||||
l_index = []
|
||||
for i, item in enumerate(l_title):
|
||||
l_index += [' - ' + item.ljust(MAX_WIDTH - 10) + f'[{prefix}{i+1}00] ']
|
||||
l_index += [' - ' + item.ljust(MAX_WIDTH - 10) + f'[{prefix}{i+1:03}] ']
|
||||
|
||||
l_index += [' ' * MAX_WIDTH]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue