Repository navigation
Drop stale compressHTML comment in Base.astro footer - #36
Conversation
Astro's default compressHTML removes the newline+indent when a line
break sits next to an inline tag, so source like
"lives in\n <a …>catalog.json</a>" rendered as "lives incatalog.json".
A build-output grep found the joined-word artifact on every page:
the footer on all 10 pages, plus index ("events.Storage Core"),
examples ("fixturesource"), skill, stack, roadmap, and staff pages.
Turning compression off fixes the class instead of policing every
line break next to an <a>/<code>/<strong>. Cost is negligible once
Cloudflare compresses the response: 27.3 KB -> 28.9 KB gzipped
across all 10 pages (raw 80.4 KB -> 99.5 KB).
Verified: rebuilt and re-grepped dist/ for text<tag and tag>text
joins (zero matches); npm run check is clean.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The rule it stated — keep boundary whitespace on the tag's line — stopped applying when #35 disabled compressHTML; the constraint now lives as a comment in astro.config.mjs. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
There was a problem hiding this comment.
Pull request overview
Removes an outdated footer comment in Base.astro that documented a workaround for compressHTML whitespace-collapsing behavior, now obsolete after compressHTML was disabled (per follow-up noted in the PR metadata).
Changes:
- Deleted the stale inline comment above the footer copy; no markup or runtime behavior changes.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Follow-up flagged in #35: the comment #34 added to the footer ("whitespace at text↔inline-tag boundaries must stay on one line") described a workaround for
compressHTML, which #35 then disabled. The rule no longer applies, and the rationale now lives next tocompressHTML: falseinastro.config.mjs.Comment-only removal, no markup changes. Verified: rebuilt and confirmed the footer still renders with correct spacing;
npm run checkclean.🤖 Generated with Claude Code