diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-19 10:48:06 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-19 10:48:06 +0200 |
| commit | 18c60c3d0ad273374410dcc0118d82493f90da98 (patch) | |
| tree | 97e6d9d234702527a7d711e219ea8828833974e9 /test/test_names.ml | |
| parent | bca7dabd2b436b8fe8de21736c59437b5ea990af (diff) | |
| download | colitur-18c60c3d0ad273374410dcc0118d82493f90da98.tar.gz colitur-18c60c3d0ad273374410dcc0118d82493f90da98.zip | |
docs(templates): fix a false claim in the worked example (F1)
The worked minimal template iterated the top-level, flat days list
and claimed the naive {{name.la}} form would print the enclosing
month's name there. It would not: with no {{#months}} wrapping it,
the flat days list has no month anywhere on the scope stack, so the
naive form on an unnamed day resolves to nothing, not to the month.
Reproduced against the live engine before touching the page: the
flat shape renders empty; the identical naive form nested inside
{{#months}} genuinely does print the month's name on both unnamed
days. The example now nests days inside months -- the shape every
shipped template actually uses, and the shape the hazard needs to
fire -- with a second, verified rendering showing the collision for
real, and a closing note stating plainly that the flat shape does not
reproduce it. SCOPE AND LOOKUP's own name-collision paragraph gained
the same nesting precondition it was missing.
Both rendered blocks were checked mechanically: extracted verbatim
from the page source and diffed against a fresh colitur table run
over the exact templates shown, byte for byte.
One cosmetic fix along the way: a transition sentence embedded the
full safe-idiom string inline via .B, which groff's justifier
stretched into visibly wide gaps when rendered. Reworded to reference
the idiom shown above instead of repeating it.
Diffstat (limited to 'test/test_names.ml')
0 files changed, 0 insertions, 0 deletions
