fix anchors, and shallower padding
This commit is contained in:
@@ -43,7 +43,7 @@ def main():
|
|||||||
postspace = " " if opts.f else ""
|
postspace = " " if opts.f else ""
|
||||||
counters = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
counters = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
||||||
lastlev = 0
|
lastlev = 0
|
||||||
re_anchor = re.compile("[^0-9a-z-]")
|
re_anchor = re.compile("[^0-9a-z_-]")
|
||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
marker_found = False
|
marker_found = False
|
||||||
@@ -73,7 +73,7 @@ def main():
|
|||||||
bullet = "{:d}. ".format(counters[pad])
|
bullet = "{:d}. ".format(counters[pad])
|
||||||
if opts.f:
|
if opts.f:
|
||||||
pad = 0
|
pad = 0
|
||||||
entries.append("{}{}{}{}".format(pad * " ", bullet, title, postspace))
|
entries.append("{}{}{}{}".format(pad * " ", bullet, title, postspace))
|
||||||
if row == MARKERSTART:
|
if row == MARKERSTART:
|
||||||
marker_found = True
|
marker_found = True
|
||||||
if marker_found and not marker_end_found:
|
if marker_found and not marker_end_found:
|
||||||
|
|||||||
Reference in New Issue
Block a user