We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf2ea5d commit cf8f942Copy full SHA for cf8f942
lib/internal/Magento/Framework/View/Layout.php
@@ -33,7 +33,7 @@ class Layout extends \Magento\Framework\Simplexml\Config implements \Magento\Fra
33
/**
34
* Empty layout xml
35
*/
36
- const LAYOUT_NODE = '<layout/>';
+ private const LAYOUT_NODE = '<layout/>';
37
38
39
* Default cache life time
@@ -604,6 +604,9 @@ protected function _renderContainer($name, $useCache = true)
604
$children = $this->getChildNames($name);
605
foreach ($children as $child) {
606
$html .= $this->renderElement($child, $useCache);
607
+ if (ctype_space($html)) {
608
+ $html = trim($html);
609
+ }
610
}
611
if ($html == '' || !$this->structure->getAttribute($name, Element::CONTAINER_OPT_HTML_TAG)) {
612
return $html;
0 commit comments