Skip to content

Commit 1bc9e69

Browse files
committed
Preserve all spaces inside <textarea> and <pre> tags
1 parent 9062eb7 commit 1bc9e69

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function ($match) use (&$heredocs) {
165165
}
166166

167167
$content = preg_replace(
168-
'#(?<!]]>)\s+</#',
168+
'#(?<!]]>)\s+</(?!(?>textarea|pre)\b)#',
169169
'</',
170170
preg_replace(
171171
'#((?:<\?php\s+(?!echo|print|if|elseif|else)[^\?]*)\?>)\s+#',

0 commit comments

Comments
 (0)