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
Preserve whitespace when evaluating {{{data}}} #1800
Comments
What whitespace are you referring to? I'm not really understanding what the problem is. |
Consider this minimum example:
Note the whitespace in front of the |
@BenRomberg Vue does somehow trim out spaces from the |
@simplesmiler thanks for chiming in. I'm aware of the implications of |
@BenRomberg I don't get then why do you need the real |
Thanks, works like a charm! |
I have a use-case where I show indented code with white-space: pre. As such, preserving the whitespace in the rendered document is critical. Vue seems to trim the whitespace when evaluating {{{data}}} expressions with embedded HTML tags. I wonder if this is necessary or if there's a workaround available.
For now, I'm replacing all spaces in the beginning with which is a very ugly workaround I'd like to get rid of.
Other than that I must say I'm pretty happy with Vue so far! Good work! :-)
The text was updated successfully, but these errors were encountered: