4.0.5
no command :/ couldn't find anything about what vue info does so ¯\_(ツ)_/¯
Add non breaking space characters. eg, in a component:
{{ text }}< template v-if="something">& nbsp ;< specialComponent />< /template>
they are stripped out by default and replaced with an ordinary space. (ignore the weird spaces. i needed some way to make those things appear in the form preview)
if i'm adding a non breaking space then there's a high chance i need it.
you can't even add a non breaking space with & nbsp ; but instead need to use {{ '\xa0' }}
non breaking spaces are preserved
non breaking spaces are removed and replaced with one ordinary space
non breaking spaces can only be added with what's pretty much an ugly hack
If you are looking for a configuration option then here it is: https://github.com/vuejs/vue/tree/dev/packages/vue-template-compiler#options (whitespace or preserveWhitespace)
If not, please report to https://github.com/vuejs/vue with the required minimal reproduction link.
This is a bug. whitespace: condense should not remove , they are not whitespaces but non breaking spaces and there is a difference, if it is being added with an html entity vue should definitely not remove it or convert it to a normal space but currently that's not the case, they are being stripped down and converted to normal spaces
Since this issue is actually the most referenced in google for some reason, here are the active and open PR/Issues
https://github.com/vuejs/vue-cli/issues/5639
https://github.com/vuejs/vue/pull/11065
Most helpful comment
This is a bug.
whitespace: condenseshould not remove , they are not whitespaces but non breaking spaces and there is a difference, if it is being added with an html entity vue should definitely not remove it or convert it to a normal space but currently that's not the case, they are being stripped down and converted to normal spacesSince this issue is actually the most referenced in google for some reason, here are the active and open PR/Issues
https://github.com/vuejs/vue-cli/issues/5639
https://github.com/vuejs/vue/pull/11065