File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ public function convert(): string
120
120
$ html = $ this ->addVariableBlocks ($ html );
121
121
$ html = $ this ->replacePlaceholders ($ html );
122
122
123
- $ html = trim ( preg_replace ('/\<template\>(.*)\ <\/template\>/ism ' , '$1 ' , $ html) );
123
+ $ html = preg_replace ('/\<template\>\s* (.*?)\s*\ <\/template\>/ism ' , '$1 ' , $ html );
124
124
125
125
if ($ this ->stripWhitespace ) {
126
126
$ html = $ this ->stripWhitespace ($ html );
@@ -307,10 +307,11 @@ private function handleAttributeBinding(DOMElement $node)
307
307
$ this ->logger ->debug ('- remove original ' . $ attribute ->name );
308
308
$ node ->removeAttribute ($ attribute ->name );
309
309
310
+ if ($ name === 'key ' ) {
311
+ continue ;
312
+ }
313
+
310
314
switch ($ name ) {
311
- case 'key ' :
312
- // Not necessary in twig
313
- return ;
314
315
case 'style ' :
315
316
break ;
316
317
case 'class ' :
You can’t perform that action at this time.
0 commit comments