aboutsummaryrefslogtreecommitdiff
path: root/test/test_lang_coverage.ml
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-08-20 10:11:48 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-08-20 10:11:48 +0200
commitcd46163fa347bbc49bf8008d70d408f62feabda5 (patch)
tree36d3b7e910dfafe7740b12e6b206cd3b9c089d1e /test/test_lang_coverage.ml
parent6aebb3ec513c0177a39c2eb8d4b741e90d6f53f4 (diff)
downloadcolitur-cd46163fa347bbc49bf8008d70d408f62feabda5.tar.gz
colitur-cd46163fa347bbc49bf8008d70d408f62feabda5.zip
fix(cli): close the flavour-list call sites Typst's addition exposed
The task this branch of work set out to test was whether the template engine is genuinely flavour-agnostic outside lib/render/escape.ml. It is not, quite: bin/main.ml's own --flavour error/help text and both man pages hand-typed the flavour list and its count ("the six flavours") as literal prose, so adding Typst as a seventh left three places silently wrong (an incomplete flavour list in two error messages, and "six" where the true count is now seven) until this commit. bin/main.ml's two error messages (unknown --flavour value, and cannot infer a flavour from an extension) now build their flavour list by walking Escape.all/to_string instead of a literal string, so the next flavour added will not reintroduce the same drift; the static --help body text and colitur(1)/colitur-templates(5) still name flavours and their count by hand; there was no equivalent gain available for prose formatted this specifically, so those were updated by hand instead, along with colitur-templates(5)'s FLAVOURS section, which gained typst's own subsection alongside latex/groff/html/xml/ics/none. test/cli.t's two pinned error-text assertions are updated to match, and gained a new case: .typ inferred from extension, and a real shipped citation's hyphen surviving --flavour typst's own escaping live, the same shape the 2035 Ss. Petri et Pauli case already proves for latex's ampersand just above it.
Diffstat (limited to 'test/test_lang_coverage.ml')
0 files changed, 0 insertions, 0 deletions