Skip to content
Snippets Groups Projects
Commit 332c5cd8 authored by Artur Sabirov's avatar Artur Sabirov
Browse files

chore: reformat check_padding.py

parent 86d88a58
No related branches found
No related tags found
1 merge request!343chore: reformat check_padding.py
Pipeline #35014 passed
......@@ -16,17 +16,17 @@ def on_page_markdown(markdown: str, page: Page, config: MkDocsConfig, files: Fil
for n, line in enumerate(lines):
if re.match("^##+ ", line):
prev = lines[n-1]
next = lines[n+1]
prev = lines[n - 1]
next = lines[n + 1]
if re.match("^---+$", prev):
prev = lines[n-2]
prev = lines[n - 2]
if prev != "" or next != "":
log.warning(f"MISSING PADDING AROUND HEADER @ {path}")
log.info("")
log.info(lines[n-2])
log.info(lines[n-1])
log.info(lines[n - 2])
log.info(lines[n - 1])
log.info(lines[n])
log.info(lines[n+1])
log.info(lines[n + 1])
log.info("")
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