Commit ae5c37d
Fix catalog render: escaped newline in the JS template killed the whole script
The aiPrompt helper's lines.join('\n') sat inside build_catalog.py's Python
template string, so Python interpreted the escape and emitted a literal
newline inside a JS string literal - a syntax error that silently blanked
every gig card (header still rendered). Now emits \n; added a regression
test that extracts the embedded <script> and validates it (node --check when
available) plus asserts the escape survives intact. Regenerated the README
demo screenshot, which had captured the broken empty render.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent c62c35d commit ae5c37d
3 files changed
Lines changed: 20 additions & 1 deletion
File tree
- assets
- skills/fiverr-gig-optimizer/scripts
- tests
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
48 | 67 | | |
49 | 68 | | |
50 | 69 | | |
| |||
0 commit comments