Skip to content

Commit 544c7b6

Browse files
Fix HTML minification problem #5316
1 parent dcca458 commit 544c7b6

File tree

1 file changed

+2
-2
lines changed
  • lib/internal/Magento/Framework/View/Template/Html

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/View/Template/Html/Minifier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ public function minify($file)
131131
'#(?<!:|\\\\|\'|")//(?!\s*\<\!\[)(?!\s*]]\>)[^\n\r]*#',
132132
'',
133133
preg_replace(
134-
'#(?<!:|\'|")//[^\n\r]*(\s\?\>)#',
135-
'$1',
134+
'#(?<!:|\'|")//[^\n\r]*(\?\>)#',
135+
' $1',
136136
preg_replace(
137137
'#(?<!:)//[^\n\r]*(\<\?php)[^\n\r]*(\s\?\>)[^\n\r]*#',
138138
'',

0 commit comments

Comments
 (0)