You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default prettyhtml formatter doesn't seem to respect strict whitespace preservation in some cases.
Reproducible Case
For example:
<h1>
404
<templatev-if="resource">
the {{ resource }} was
</template>
not found
</h1>
reformats to:
<h1>
404
<templatev-if="resource">the {{ resource }} was</template>not found
</h1>
Which may render as:
the user wasnot found
As a sidenote, I'd prefer prettyhtml not to move independent nodes onto the same line when I specifically put them on separate lines. Prettier is also fixing the same problem here.
Info
Problem
The default
prettyhtml
formatter doesn't seem to respect strict whitespace preservation in some cases.Reproducible Case
For example:
reformats to:
Which may render as:
As a sidenote, I'd prefer
prettyhtml
not to move independent nodes onto the same line when I specifically put them on separate lines. Prettier is also fixing the same problem here.Also tagging @StarpTech.
The text was updated successfully, but these errors were encountered: