Skip to content
Snippets Groups Projects
Commit e4f5e2da authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Adding empty line after TOC

parent 9ad0e7d2
No related branches found
No related tags found
No related merge requests found
Pipeline #87 passed
......@@ -58,6 +58,7 @@ def correctTOC(progress:Progress, mdLines:list[str], tocSection:str = 'Contents'
if _inTOC:
if line.startswith('#'): # End of TOC?
_inTOC = False
_lines.append(f'\n')
_lines.append(line)
continue
matches = re.findall(tocregex, line) # Replace entry
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment