#62280css_styled_content include via INCLUDE_TYPOSCRIPT still not working correctly (removes closing bracket "}")
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.
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.