File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
tests/print/samples/svelte-element Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -768,12 +768,11 @@ const svelte_visitors = {
768768 } ,
769769
770770 SvelteElement ( node , context ) {
771- context . write ( '<svelte:element' ) ;
771+ context . write ( '<svelte:element ' ) ;
772772
773- // TODO spaces at interesting places
774773 context . write ( 'this={' ) ;
775774 context . visit ( node . tag ) ;
776- context . write ( '} ' ) ;
775+ context . write ( '}' ) ;
777776
778777 for ( const attribute of node . attributes ) {
779778 // TODO handle multiline
Original file line number Diff line number Diff line change 22 let tag = $state (' hr' );
33 </script >
44
5- <svelte:elementthis ={tag } >This text cannot appear inside an hr element</svelte:element >
5+ <svelte:element this ={tag }>This text cannot appear inside an hr element</svelte:element >
You can’t perform that action at this time.
0 commit comments