From 135209fe793ecb01a569f11bd845a92abab110ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Untersch=C3=BCtz?= Date: Tue, 24 Nov 2026 22:29:37 +0100 Subject: [PATCH] fix(web): space between the documents in the consent text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sign-up and consent pages ran the first document's link into the word joining it to the next, as in "Datenschutzerklärungund die AGB". Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3 --- internal/api/consent_test.go | 3 +++ internal/web/auth.templ | 2 +- internal/web/auth_templ.go | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/internal/api/consent_test.go b/internal/api/consent_test.go index 8cfdb38..8ab8a00 100644 --- a/internal/api/consent_test.go +++ b/internal/api/consent_test.go @@ -48,6 +48,9 @@ func TestConsent(t *testing.T) { if !strings.Contains(versions, "privacy:") || !strings.Contains(versions, "terms:") || !strings.Contains(form, `name="consent" required`) { t.Fatalf("sign-up form lacks the consent box: versions %q", versions) } + if !strings.Contains(form, " and the 0 { - { i18n.T(ctx, "consent.and") } + { " " + i18n.T(ctx, "consent.and") } } { i18n.T(ctx, "consent.doc."+d.Kind) } } diff --git a/internal/web/auth_templ.go b/internal/web/auth_templ.go index 07bad25..0cb510a 100644 --- a/internal/web/auth_templ.go +++ b/internal/web/auth_templ.go @@ -356,9 +356,9 @@ func consentLinks(docs []LegalLink) templ.Component { for i, d := range docs { if i > 0 { var templ_7745c5c3_Var17 string - templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(i18n.T(ctx, "consent.and")) + templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(" " + i18n.T(ctx, "consent.and")) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/web/auth.templ`, Line: 81, Col: 31} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `internal/web/auth.templ`, Line: 81, Col: 37} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17)) if templ_7745c5c3_Err != nil { -- 2.54.1