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
Consistent rendering of the middle element, and without spaces.
What is actually happening?
On node, the dev mode and built files will be rendered as:
Including Vue as a script tag (like in the repro), you will get:
However, what you probably really want is:
Personally, I feel that whitespace should be stripped out if the curly braces are the only thing within the html tag, if those are required then they can be added within the curly braces like {{ " example " }}.
You will probably encounter this if you use plugin:vue/recommended in your eslint config as that enforces the multi-line attributes in html tags.
Spaces will be added between MESSAGE which might not be what you want (will also be added on both sides if only one of the inner spans are there), workaround is the same.This result may be unexpected considering that indentation & newline is being interpreted as actual characters.
Version
2.6.10
Reproduction link
https://jsbin.com/feloyenami/2/edit?html,js,output
Steps to reproduce
Have any code written with the following format (including indentation and newlines)
What is expected?
Consistent rendering of the middle element, and without spaces.
What is actually happening?
On node, the dev mode and built files will be rendered as:
Including Vue as a script tag (like in the repro), you will get:
However, what you probably really want is:
Personally, I feel that whitespace should be stripped out if the curly braces are the only thing within the html tag, if those are required then they can be added within the curly braces like
{{ " example " }}
.You will probably encounter this if you use
plugin:vue/recommended
in your eslint config as that enforces the multi-line attributes in html tags.Workaround:
The text was updated successfully, but these errors were encountered: