fix anchors, and shallower padding

This commit is contained in:
2023-11-01 14:52:36 +02:00
parent 08a2e6b28b
commit 28e1d121a9

View File

@@ -43,7 +43,7 @@ def main():
postspace = " " if opts.f else ""
counters = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
lastlev = 0
re_anchor = re.compile("[^0-9a-z-]")
re_anchor = re.compile("[^0-9a-z_-]")
entries = []
marker_found = False
@@ -73,7 +73,7 @@ def main():
bullet = "{:d}. ".format(counters[pad])
if opts.f:
pad = 0
entries.append("{}{}{}{}".format(pad * " ", bullet, title, postspace))
entries.append("{}{}{}{}".format(pad * " ", bullet, title, postspace))
if row == MARKERSTART:
marker_found = True
if marker_found and not marker_end_found: