[BUGFIX] Properly render multiline form values 50/53950/2
authorDaniel Lorenz <daniel.lorenz@extco.de>
Thu, 7 Sep 2017 13:25:50 +0000 (15:25 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 7 Sep 2017 14:39:13 +0000 (16:39 +0200)
Properly render multiline form values in summary page
and HTML emails.

Resolves: #82026
Releases: master, 8.7
Change-Id: Ic0d9cca3712437cd4625a4644355f77db8f01587
Reviewed-on: https://review.typo3.org/53950
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Tested-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Tested-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/form/Resources/Private/Frontend/Partials/SummaryPage.html
typo3/sysext/form/Resources/Private/Frontend/Templates/Finishers/Email/Html.html

index 93eba35..3ef043d 100644 (file)
@@ -26,7 +26,7 @@
                                                                                                        </ul>
                                                                                                </f:then>
                                                                                                <f:else>
-                                                                                                       {formValue.processedValue}
+                                                                                                       <f:format.nl2br>{formValue.processedValue}</f:format.nl2br>
                                                                                                </f:else>
                                                                                        </f:if>
                                                                                </f:else>
index 2dc9f43..7edd598 100644 (file)
@@ -27,7 +27,7 @@
                                                                <f:else>
                                                                        <table cellspacing="0" border="0">
                                                                                <tr>
-                                                                                       <td>{formValue.processedValue}</td>
+                                                                                       <td><f:format.nl2br>{formValue.processedValue}</f:format.nl2br></td>
                                                                                </tr>
                                                                        </table>
                                                                </f:else>