Keep the generated More line as before (the nine rules fit: 137 lines). done / next: references
This commit is contained in:
1 parent
c4047bd3fb
commit
ef6edf0e9f
1 file changed
+2
-2
+2
-2
@@ -256,7 +256,7 @@ def overlay_hash():
|
|||||||
|
|
||||||
def more_line(n):
|
def more_line(n):
|
||||||
"""The generated pointer under each rule: the command that prints the rule in full."""
|
"""The generated pointer under each rule: the command that prints the rule in full."""
|
||||||
return "More: `sisi rule %d`." % n
|
return "More: `sisi rule %d` (reasons, history, lessons behind it, how it is enforced)." % n
|
||||||
|
|
||||||
|
|
||||||
def _render(pre, rules):
|
def _render(pre, rules):
|
||||||
@@ -272,7 +272,7 @@ def _render(pre, rules):
|
|||||||
parts.append(pre)
|
parts.append(pre)
|
||||||
for n, r in enumerate(rules, 1):
|
for n, r in enumerate(rules, 1):
|
||||||
# the pointer rides on the body's last line: it costs no line of the always-loaded budget
|
# 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)))
|
parts.append("## %d. %s {#%s}\n\n%s\n%s" % (n, r["title"], r["id"], r["body"], more_line(n)))
|
||||||
return "\n\n".join(parts) + "\n"
|
return "\n\n".join(parts) + "\n"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user