Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/check_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def check_placeholders(text: str, template_body: str) -> None:
if table_start == -1:
errors.append("Could not find the '### 4 — Fill in the placeholders' section.")
return
table_section = text[table_start:table_start + 8000]
next_heading = text.find("\n### ", table_start + 1)
table_section = text[table_start:next_heading if next_heading != -1 else len(text)]

declared = set()
for line in table_section.splitlines():
Expand Down
Loading