Skip to content
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

The leading newline character immediately following <pre> should be stripped #908

Closed
ikatyang opened this issue Apr 1, 2020 · 0 comments
Labels
🐞 bug Something isn't working

Comments

@ikatyang
Copy link

ikatyang commented Apr 1, 2020

Version

3.0.0-alpha.10

Reproduction link

https://vue-next-template-explorer.netlify.com/#%7B%22src%22%3A%22%3Cpre%3E%5Cn123%3C%2Fpre%3E%5Cn%22%2C%22options%22%3A%7B%22mode%22%3A%22module%22%2C%22prefixIdentifiers%22%3Afalse%2C%22optimizeBindings%22%3Afalse%2C%22hoistStatic%22%3Afalse%2C%22cacheHandlers%22%3Afalse%2C%22scopeId%22%3Anull%7D%7D

Steps to reproduce

See the compiled output.

What is expected?

Per HTML spec, a leading newline character immediately following <pre> should be stripped.

What is actually happening?

The leading newline character immediately following <pre> is preserved.


The newline character is stripped in Vue 2.

@ikatyang ikatyang changed the title [SFC] The leading newline character immediately following <pre> is preserved The leading newline character immediately following <pre> should be stripped Apr 1, 2020
@yyx990803 yyx990803 added the 🐞 bug Something isn't working label Apr 4, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants