Fix broken payment page: escape html/body heredocs in page_open
Dev — Build & local smoke test / build-smoke (pull_request) Failing after 1m27s
Dev — Build & local smoke test / build-smoke (pull_request) Failing after 1m27s
elc's heredoc parser treats <html> as an opener and scans forward for </html>, which exists inside page_close's return statement. This caused the entire El source of page_close to be injected verbatim into the page_open output string, terminating the document before Stripe scripts could load. Fix: put <!DOCTYPE html><html lang="en"> in a quoted string literal and use <head>...</head> as the sole heredoc in page_open — closes within the same function, no cross-boundary scanning. Stub page_close in styles.el as extern fn so dist/page_close.c supplies the definition. Also fix elc-broken hyphenated attributes in dist/page_close.c: aria-label, stroke-width, stroke-linecap, ×, and several text nodes that had whitespace stripped by the heredoc parser.
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user