Unintended whitespace is inserted into the value of an HTML attribute
koyashiro opened this issue · 0 comments
koyashiro commented
When formatting the following HTML, unintended newline and indentation characters (space or tab) are inserted into the value attribute of the input element:
Before
<!DOCTYPE html>
<html lang="en">
<body>
{{ $longLongLongLongLongLongLongLongLongNameVariable := true }}
<input
type="text"
value="{{ if $longLongLongLongLongLongLongLongLongNameVariable }}hello{{ end }}"
/>
</body>
</html>
After
<!DOCTYPE html>
<html lang="en">
<body>
{{ $longLongLongLongLongLongLongLongLongNameVariable := true }}
<input
type="text"
value="{{ if $longLongLongLongLongLongLongLongLongNameVariable }}
hello
{{ end }}"
/>
</body>
</html>