fix(content): preserve numbers within retirement notice prose #369

Merged
Eric merged 1 commit from fix/notice-numbered-paragraph-times into main 2026-10-06 16:58:59 +02:00
Owner

Retirement notices currently insert paragraph breaks before any whitespace-separated number followed by a period. This splits French times such as 11 h 30. and 13 H 30. before the minutes, and splits ROTO 6. in an English notice.

Recognize inline numbered paragraphs only after a sentence boundary and before paragraph text. Preserve authored line breaks and French nonbreaking whitespace. This changes display formatting only; no source copy, translations, API, stored records, styles, or Last Post renderer are changed. Last Post continues to use the existing shared linkifier directly.

Validation:

  • Regression coverage includes the exact current Gaudet 11 h 30., Czarnowske 13 H 30., and Young ROTO 6. excerpts, compact/spaced hour forms, NBSP/narrow NBSP, decimals, dates, URLs, embedded numbers, genuine numbered paragraphs, line endings, and bilingual renderer/linkifier wiring.
  • Compared all 12 publicly listed staging retirement notices in both languages: 21 of 24 versions render identically; the remaining 3 correct the false breaks above. Both complete Gaudet and Czarnowske bilingual notices remain exactly equal to their source strings.
  • Full local npm test passes, including runtime/syntax/lint, 440 unit tests, 3 OpenAPI contract tests, and Mongo-backed integration tests. Changed-file Prettier and git diff --check pass.

Prepared from fresh main 679bfa53afd6236a0e9449091c7583a332f52efe, preserving PR #368. No deployment or live content changes.

Retirement notices currently insert paragraph breaks before any whitespace-separated number followed by a period. This splits French times such as `11 h 30.` and `13 H 30.` before the minutes, and splits `ROTO 6.` in an English notice. Recognize inline numbered paragraphs only after a sentence boundary and before paragraph text. Preserve authored line breaks and French nonbreaking whitespace. This changes display formatting only; no source copy, translations, API, stored records, styles, or Last Post renderer are changed. Last Post continues to use the existing shared linkifier directly. Validation: - Regression coverage includes the exact current Gaudet `11 h 30.`, Czarnowske `13 H 30.`, and Young `ROTO 6.` excerpts, compact/spaced hour forms, NBSP/narrow NBSP, decimals, dates, URLs, embedded numbers, genuine numbered paragraphs, line endings, and bilingual renderer/linkifier wiring. - Compared all 12 publicly listed staging retirement notices in both languages: 21 of 24 versions render identically; the remaining 3 correct the false breaks above. Both complete Gaudet and Czarnowske bilingual notices remain exactly equal to their source strings. - Full local `npm test` passes, including runtime/syntax/lint, 440 unit tests, 3 OpenAPI contract tests, and Mongo-backed integration tests. Changed-file Prettier and `git diff --check` pass. Prepared from fresh main `679bfa53afd6236a0e9449091c7583a332f52efe`, preserving PR #368. No deployment or live content changes.
Eric self-assigned this 2026-10-06 16:54:03 +02:00
fix(content): preserve numbers within retirement notice prose
All checks were successful
Tests / Docker image build (pull_request) Successful in 2m49s
Validate PR title / Conventional PR title (pull_request) Successful in 3s
Tests / Node.js 24 test suite (pull_request) Successful in 4m13s
80f2714efd
Eric changed title from WIP: fix(content): preserve numbers within retirement notice prose to fix(content): preserve numbers within retirement notice prose 2026-10-06 16:57:27 +02:00
Eric merged commit bf5aace133 into main 2026-10-06 16:58:59 +02:00
Eric deleted branch fix/notice-numbered-paragraph-times 2026-10-06 16:59:00 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Eric/CMCENDev!369
No description provided.