Commit c5b238b
committed
V30: Trim generated proven appendix EOF
Normalize the canonical proven appendix renderer so promotion-generated markdown ends with exactly one trailing newline and no blank EOF line. Apply the same behavior to the demonstration renderer and cover it with the proven generator test.
Proof:
- node --test --test-force-exit protocol-demonstration/test/proven-generator.test.js
- git diff --check
- node scripts/generate-bitcode-proven.mjs --version V30 --commit 9d0adf7 --worktree-state clean --allow-dirty --stdout > /tmp/BITCODE_SPEC_V30_PROVEN.md && node -e "const fs=require('fs'); const s=fs.readFileSync('/tmp/BITCODE_SPEC_V30_PROVEN.md','utf8'); if(!s.endsWith('\n')||s.endsWith('\n\n')) process.exit(1);"1 parent 9d0adf7 commit c5b238b
3 files changed
Lines changed: 8 additions & 2 deletions
File tree
- packages/protocol/src/canonical
- protocol-demonstration
- src/canonical
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7126 | 7126 | | |
7127 | 7127 | | |
7128 | 7128 | | |
7129 | | - | |
| 7129 | + | |
| 7130 | + | |
| 7131 | + | |
7130 | 7132 | | |
7131 | 7133 | | |
7132 | 7134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7124 | 7124 | | |
7125 | 7125 | | |
7126 | 7126 | | |
7127 | | - | |
| 7127 | + | |
| 7128 | + | |
| 7129 | + | |
7128 | 7130 | | |
7129 | 7131 | | |
7130 | 7132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
0 commit comments