Skip to content

Hotfix: award snippet leaked a multi-line {# #} comment onto every card (2.14.2)#1357

Merged
jonfroehlich merged 2 commits into
masterfrom
awards-comment-hotfix
Jun 20, 2026
Merged

Hotfix: award snippet leaked a multi-line {# #} comment onto every card (2.14.2)#1357
jonfroehlich merged 2 commits into
masterfrom
awards-comment-hotfix

Conversation

@jonfroehlich

Copy link
Copy Markdown
Member

Problem (live on prod)

The explanatory comment I added to display_award_snippet.html in 2.14.1 (#1356) was a multi-line {# #} comment. Django's {# #} only supports single-line comments, so the whole thing — including the literal text '…output reads "Name, Project" and never "Name , Project". #}' — rendered as visible text on every award card on production.

(The actual recipient/project spacing fix from 2.14.1 is fine; this was a separate, self-inflicted regression in the comment.)

Fix

Replace the multi-line {# #} with a {% comment %}…{% endcomment %} block (multi-line safe, renders nothing).

Test

Added guards to the award render test: the page must not contain {# or the explanatory text. The existing spacing test missed this because the leaked comment used placeholder names ("Name") rather than the test's data. All 12 award tests pass.

Version

2.14.2 (hotfix).

🤖 Generated with Claude Code

jonfroehlich and others added 2 commits June 19, 2026 17:05
A 3-line {# #} comment added in 2.14.1 leaked as literal text onto every award
card on prod — Django's {# #} only supports single-line comments. Replaced with a
{% comment %} block. Added regression guards (no '{#' / explanatory text in the
rendered page). Bumps to 2.14.2.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Adds a coding-convention note so this recurring footgun (multi-line {# #}
rendering as visible text) gets caught — same bug this PR fixes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jonfroehlich jonfroehlich merged commit 33b8a20 into master Jun 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant