[BUGFIX] Remove additional lines in textareas of formengine 90/51490/2
authorGeorg Ringer <georg.ringer@gmail.com>
Tue, 31 Jan 2017 19:15:20 +0000 (20:15 +0100)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Tue, 31 Jan 2017 20:07:18 +0000 (21:07 +0100)
Remove additional lines around the actual content of a
textarea.

Resolves: #79573
Releases: master
Change-Id: I636afb0ec63d34d4a209caeaa1369bc65727665d
Reviewed-on: https://review.typo3.org/51490
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/backend/Classes/Form/Element/TextElement.php

index 52ef143..44093fe 100644 (file)
@@ -203,9 +203,7 @@ class TextElement extends AbstractFormElement
         $mainFieldHtml[] = '<div class="form-control-wrap" style="max-width: ' . $width . 'px">';
         $mainFieldHtml[] =  '<div class="form-wizards-wrap">';
         $mainFieldHtml[] =      '<div class="form-wizards-element">';
-        $mainFieldHtml[] =          '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>';
-        $mainFieldHtml[] =              htmlspecialchars($itemValue);
-        $mainFieldHtml[] =          '</textarea>';
+        $mainFieldHtml[] =          '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>' . htmlspecialchars($itemValue) . '</textarea>';
         $mainFieldHtml[] =      '</div>';
         $mainFieldHtml[] =      '<div class="form-wizards-items-aside">';
         $mainFieldHtml[] =          '<div class="btn-group">';