Skip to content

Commit cf8f942

Browse files
committed
ACP2E-3044: Unnecessary borders on the My Orders section
1 parent cf2ea5d commit cf8f942

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/internal/Magento/Framework/View/Layout.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Layout extends \Magento\Framework\Simplexml\Config implements \Magento\Fra
3333
/**
3434
* Empty layout xml
3535
*/
36-
const LAYOUT_NODE = '<layout/>';
36+
private const LAYOUT_NODE = '<layout/>';
3737

3838
/**
3939
* Default cache life time
@@ -604,6 +604,9 @@ protected function _renderContainer($name, $useCache = true)
604604
$children = $this->getChildNames($name);
605605
foreach ($children as $child) {
606606
$html .= $this->renderElement($child, $useCache);
607+
if (ctype_space($html)) {
608+
$html = trim($html);
609+
}
607610
}
608611
if ($html == '' || !$this->structure->getAttribute($name, Element::CONTAINER_OPT_HTML_TAG)) {
609612
return $html;

0 commit comments

Comments
 (0)