# M'Cheyne template fix

Apply to **`Reading Plan Builder v5 polish.dc.html`** — replace **lines 426–429**
(the `{ name: "M'Cheyne", ... }` entry in `this.TEMPLATES`).
Line 422's `const otx = ...` becomes dead once this lands; delete it if nothing
else uses it.

## Remove

```js
{ name: "M'Cheyne", desc: "The classic 1842 Scottish plan: OT once, NT and Psalms twice — about 4 chapters a day.", sels: [
  { name: "Rest of OT", baseName: "Old Testament", books: otx, freq: 1 },
  { name: "New Testament", baseName: "New Testament", books: range("Matthew","Revelation"), freq: 2 },
  { name: "Psalms", baseName: "Psalms", books: ["Psalms"], freq: 2 }] },
```

## Replace with

```js
// M'Cheyne's 1842 calendar is four parallel bookmarks, not three streams
// weighted by frequency. Each track is ~365-410 chapters read once, which
// is why the original has a reading in every track every day. Modelling it
// as "Psalms x2" instead left 65 days with no psalm. Book ORDER inside a
// track is load-bearing here: dayChapters walks sel.books as given, so
// placing Psalms mid-track is what makes the tracks open on Gen 1 / Mt 1 /
// Ezra 1 / Acts 1 and close on 2 Chr 36 / Rev 22 / Mal 4 / Jn 21, exactly
// as the printed calendar does.
{ name: "M'Cheyne", desc: "The classic 1842 Scottish calendar: four bookmarks — OT once, NT and Psalms twice — about 4 chapters a day.", sels: [
  { name: "Family \u00b7 Genesis onward", baseName: "M'Cheyne family 1",
    books: range("Genesis","2 Chronicles"), freq: 1 },
  { name: "Family \u00b7 Matthew onward", baseName: "M'Cheyne family 2",
    books: [...range("Matthew","John"), "Psalms", ...range("Acts","Revelation")], freq: 1 },
  { name: "Secret \u00b7 Ezra onward", baseName: "M'Cheyne secret 1",
    books: range("Ezra","Malachi").filter(n => n !== "Psalms"), freq: 1 },
  { name: "Secret \u00b7 Acts onward", baseName: "M'Cheyne secret 2",
    books: [...range("Acts","Revelation"), "Psalms", ...range("Matthew","John")], freq: 1 }] },
```

## Preflight

Clean: the replacement block introduces no Lava comment sequences (slash-hyphen or
double-slash-hyphen). Re-run lava-preflight.py on the whole file after pasting.
