Skip to content

Commit

Permalink
fix: Template.HTML.Element Content Fix ( Fixes #972 )
Browse files Browse the repository at this point in the history
  • Loading branch information
StartAutomating authored and StartAutomating committed Mar 19, 2024
1 parent 648d789 commit 51deee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Languages/HTML/Templates/Syntax/HTML-Template-Element.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function Template.HTML.Element {
}) -join ''
}

if ($content) {
if (-not $content) {
"<${Name}${AttributeString} />" -replace "\s{1,}\/\>$", "/>"
} else {
"<${Name}${attributesString}>$Content</$Name>"
Expand Down

0 comments on commit 51deee8

Please sign in to comment.