Skip to content

Commit edb4c37

Browse files
authored
Merge pull request #1 from wiradigitalid/fix/blueprint-actor-heading-empty-name
Drop the orphaned separator from blueprint actor headings
2 parents f3318af + 8c48f74 commit edb4c37

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎kit/.constitution/method/scripts/validate.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1510,7 +1510,11 @@ def page_blueprint(c: Corpus) -> str:
15101510
for pc in c.pcs:
15111511
pid = str(pc.get("id"))
15121512
block = _section(c.root / f".what/{pid}/SRS-{pid}.md", "Actor Register")
1513-
parts.append(f"\n### {pid} — {pc.get('name', '')}\n")
1513+
# A Product Component carries no `name` in `components.yaml` — only a container does — so
1514+
# this heading rendered as `### settings — `, with an orphaned separator, for every
1515+
# component of every product. The separator belongs to the name, not to the heading.
1516+
name = str(pc.get("name") or "").strip()
1517+
parts.append(f"\n### {pid} — {name}\n" if name else f"\n### {pid}\n")
15141518
parts.append(_demote(block) if block
15151519
else "_no § Actor Register in this component's SRS yet._")
15161520

0 commit comments

Comments
 (0)