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

template compiler ignores pug whitespace control? #9849

Closed
patriciussanctus opened this Issue Apr 9, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@patriciussanctus
Copy link

patriciussanctus commented Apr 9, 2019

Version

2.6.10

Reproduction link

https://codesandbox.io/s/825v44246j

Steps to reproduce

i want in markup <span>1</span> <span>2</span> in pug

What is expected?

expected whitespaces appear in DOM

What is actually happening?

my markup sticks together


compiler ignores pug recommended solutions of whitespace control https://pugjs.org/language/plain-text.html#whitespace-control

@posva

This comment has been minimized.

Copy link
Member

posva commented Apr 9, 2019

In the doc it tells you to use multiple | to have a space:

      span
      | text
      |

Take a look at the compiler options: https://github.com/vuejs/vue/tree/dev/packages/vue-template-compiler#options

@posva posva closed this Apr 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.