Issue Bug Closed

#62280css_styled_content include via INCLUDE_TYPOSCRIPT still not working correctly (removes closing bracket "}")

Andreas Allacher 10/16/14, 13:11 updated 10/02/18, 11:51

Description

With https://forge.typo3.org/issues/49461
support was added to allow css_styled_content to be loaded via INCLUDE_TYPOSCRIPT.
However, that is still buggy.

see code:
https://git.typo3.org/Packages/TYPO3.CMS.git/blob/HEAD:/typo3/sysext/core/Classes/TypoScript/Parser/TypoScriptParser.php#l808

The problem is the soon following

// Not the first/last linebreak char.
$string = substr($newString, 1, -1);

Because TYPO3\CMS\Extbase\Utility\ExtensionUtility->configurePlugin does not add a linebreak add the end this causes the closing “}” to be removed which is a problem if TypoScript comes afterwards.

Reviews 2