From 3d05627279ae7d89172c433e15c3e70d01855fab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christian=20E=C3=9Fl?= <indy.essl@gmail.com>
Date: Sat, 29 Feb 2020 12:43:38 +0100
Subject: [PATCH] [BUGFIX] Allow newlines in ConfirmationFinisher message

The ConfirmationFinisher in ext:form allows for adding messages with
a textarea. These are saved with newlines in YAML, but the Confirmation
partial never processed these newlines as <br> tags.

Resolves: #90244
Releases: master, 9.5
Change-Id: I80a9a73e83d122be47b61cb28b628479c5a8e43d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63505
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Susanne Moog <look@susi.dev>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Oliver Bartsch <bo@cedev.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Guido Schmechel <guido.schmechel@brandung.de>
Reviewed-by: Susanne Moog <look@susi.dev>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
---
 .../Frontend/Templates/Finishers/Confirmation/Confirmation.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typo3/sysext/form/Resources/Private/Frontend/Templates/Finishers/Confirmation/Confirmation.html b/typo3/sysext/form/Resources/Private/Frontend/Templates/Finishers/Confirmation/Confirmation.html
index 602966e189ec..f736468276eb 100644
--- a/typo3/sysext/form/Resources/Private/Frontend/Templates/Finishers/Confirmation/Confirmation.html
+++ b/typo3/sysext/form/Resources/Private/Frontend/Templates/Finishers/Confirmation/Confirmation.html
@@ -5,7 +5,7 @@
             {message -> f:format.raw()}
         </f:then>
         <f:else>
-            {message}
+            {message -> f:format.nl2br()}
         </f:else>
     </f:if>
 </div>
-- 
GitLab