fix: German quote style U+201C instead of U+201D (A11-T1)

Corrected closing quotation mark in hx-confirm attribute and test assertions
from U+201D (RIGHT DOUBLE QUOTATION MARK) to U+201C (LEFT DOUBLE QUOTATION
MARK), matching German typographic convention („...") and house style (line 114).

Changes by code point:
- finance/app/templates/szenarien.html line 17: 1 × U+201D → U+201C
- finance/tests/test_gui.py lines 501, 521: 2 × U+201D → U+201C

Template lines 17 and 114 now have identical quote code points: U+201E...U+201C.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-28 19:07:31 +02:00
co-authored by Claude Opus 5.5
parent 8b637f91b3
commit 32d78fdbe1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -14,7 +14,7 @@
· Einmalposten: {{ 'ja' if sc.include_planned else 'nein' }}
<button type="button" onclick="toggleEdit('sc', {{ sc.id }}, true)">Bearbeiten</button>
<button type="button" hx-delete="/api/scenarios/{{ sc.id }}" hx-swap="none"
hx-confirm="Szenario „{{ sc.name }}” mit allen Einträgen wirklich löschen?"
hx-confirm="Szenario „{{ sc.name }}“ mit allen Einträgen wirklich löschen?"
hx-on::after-request="if(event.detail.successful){window.location.reload()}">Löschen</button>
</p>
<div id="sc-edit-{{ sc.id }}" hidden>
+2 -2
View File
@@ -498,7 +498,7 @@ def test_szenarien_seite_hat_loeschen_button(client, db):
# Verify delete button is present
assert f'hx-delete="/api/scenarios/{sc.id}"' in r.text
# Verify the full confirmation text in the page (brief requirement)
assert 'Szenario „Wegwerf” mit allen Einträgen wirklich löschen?' in r.text
assert 'Szenario „Wegwerf“ mit allen Einträgen wirklich löschen?' in r.text
# Parse HTML to verify the hx-confirm attribute has correct value with proper quotes
class ButtonParser(HTMLParser):
@@ -518,7 +518,7 @@ def test_szenarien_seite_hat_loeschen_button(client, db):
parser.feed(r.text)
assert parser.found_delete_button, "Delete button not found"
# Verify the attribute value uses correct typographic quotes
expected_confirm = 'Szenario „Wegwerf” mit allen Einträgen wirklich löschen?'
expected_confirm = 'Szenario „Wegwerf“ mit allen Einträgen wirklich löschen?'
assert parser.hx_confirm_value == expected_confirm, \
f"hx-confirm attribute mismatch: got {repr(parser.hx_confirm_value)}, expected {repr(expected_confirm)}"