You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(corpus): preserve exact Trusov projection line endings at template EOF #436
scriptorium.robinson_trusov_projection.project_page currently sets ending = "\r\n" if line.endswith("\r\n") else "\n". A standalone {{heading|4|...}} or {{nop}} at the end of a Page with no terminal newline, or with a lone CR, therefore gains a synthetic LF. This alters source-free projected hashes/character counts; it must be distinguished from the explicitly documented one-LF between Pages.
Acceptance
Preserve the original per-line terminator verbatim for LF, CRLF, lone CR and absent terminal newline; never silently invent an end-of-Page LF.
Add positive and negative regressions for standalone heading/nop, ordinary prose/unsupported inline templates, and the fail-closed empty projected Page case.
Maintain the original exact-source preflight and VAR diagnostic behavior and the existing no-prose-publication boundary. Do not claim a verified historical render, book body, >=300k count or FantLab parity.
Run focused tests and applicable hosted checks; merge only after later independent exact-head acceptance.
Activity