Skip to content

Commit 003843d

Browse files
committed
minor symfony#52466 [AssetMapper] render newline in front of all script elements (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [AssetMapper] render newline in front of all script elements | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | Fix symfony#52451 | License | MIT Commits ------- 97e4839 render newline in front of all script elements
2 parents 615b844 + 97e4839 commit 003843d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Component/AssetMapper/ImportMap/ImportMapRenderer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public function render(string|array $entryPoint, array $attributes = []): string
9191
$scriptAttributes = $this->createAttributesString($attributes);
9292
$importMapJson = json_encode(['imports' => $importMap], \JSON_THROW_ON_ERROR | \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES | \JSON_HEX_TAG);
9393
$output .= <<<HTML
94+
9495
<script type="importmap"$scriptAttributes>
9596
$importMapJson
9697
</script>

0 commit comments

Comments
 (0)