-
-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fmt): Preserve newline after templ elements
- Loading branch information
1 parent
2f6aa04
commit dc3c684
Showing
5 changed files
with
66 additions
and
3 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
parser/v2/formattestdata/element_double_newline_after_component.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
-- in -- | ||
package main | ||
|
||
templ x() { | ||
<div> | ||
@Hero() | ||
<span></span> | ||
|
||
|
||
@Hero() | ||
|
||
|
||
|
||
<span></span> | ||
</div> | ||
} | ||
-- out -- | ||
package main | ||
|
||
templ x() { | ||
<div> | ||
@Hero() | ||
<span></span> | ||
|
||
@Hero() | ||
|
||
<span></span> | ||
</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters