Step 1: install the nine-rule rulebook; More pointer rides on the last body line (195 lines). done / next: enforcement map

This commit is contained in:
swaits committed 2026-11-23 12:08:57 -07:00
1 parent 7a32e6dc1d
commit c96629bf50
2 files changed
+97 -115

No files matched your search

+3 -2
View File
@@ -213,7 +213,7 @@ def overlay_hash():
def more_line(n):
"""The generated pointer under each rule: the command that prints the rule in full."""
return "More: `sisi rule %d` (reasons, history, lessons behind it, how it is enforced)." % n
return "More: `sisi rule %d`." % n
def _render(pre, rules):
@@ -228,7 +228,8 @@ def _render(pre, rules):
if pre.strip():
parts.append(pre)
for n, r in enumerate(rules, 1):
parts.append("## %d. %s {#%s}\n\n%s\n%s" % (n, r["title"], r["id"], r["body"], more_line(n)))
# the pointer rides on the body's last line: it costs no line of the always-loaded budget
parts.append("## %d. %s {#%s}\n\n%s %s" % (n, r["title"], r["id"], r["body"].rstrip("\n"), more_line(n)))
return "\n\n".join(parts) + "\n"