-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html: Closing > put on newline #5582
Comments
Partially related to #5377, but it seems you forgot to use the angular/vue parser? which should trigger the formatting for interpolations: Prettier 1.15.3 --parser angular Input: <!DOCTYPE html>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
Response body
<textarea
name="readinessProbe.response.body"
>{{ readinessProbe.response.body }}</textarea>
</div>
</div>
</div>
</div>
</div>
</div>
</div> Output: <!DOCTYPE html>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
Response body
<textarea name="readinessProbe.response.body">{{
readinessProbe.response.body
}}</textarea>
</div>
</div>
</div>
</div>
</div>
</div>
</div> |
Is it related to that? This is closing That said, we should probably use another parser, even though I'd expect the content of a |
Feel free to close however, as changing the parser works fine 🙂 |
Since
If you intend to use it as an interpolation, you should use one of the parser that supports interpolation since there's a special rule for <!-- before -->
<textarea>{{something}}
<!-- after -->
<textarea>
{{something}} It'll break the output if And also, continuous whitespaces in |
Ah, alright! You learn something every day 🙂 Thanks for the detailed response |
Prettier 1.15.3
Playground link
Input:
Output:
Expected behavior:
Not to change the input. The input comes from 1.15.2.
That part is the thing I'm reporting, if the amount if divs were confusing 😅
html-whitespace-sensitivity
doesn't matter, btwThe text was updated successfully, but these errors were encountered: