I'm translating an app from pug to HTML and I have some issues regarding whitespaces.
I'm using vue-loader (13.x) and webpack 3.x.
This code:
<body>
<span>
Whitespaces, whitespaces everywhere
</span>
</body>
Will translate to this in the browser:
<body>
<span>
Whitespaces, whitespaces everywhere
</span>
</body>
While this code:
<body>
<span>No whitespace, yay!</span>
</body>
Will translate correctly.
I'd like both bits of code to translate to the same HTML <span>no whitespace</span>
.
I want this because when I translated pug to HTML, I got some weird spacing I didn't have on pug.
What can I do?
--edit whit my actual code and screenshot.
<p class="home-main-person-list-text align-self-top large-offset-2 small-offset-1 show-for-medium">
À contacter
<span class="home-main-person-list-text-nb">
5
</span>
</p>
Whitespace by default when I run the code: https://i.stack.imgur.com/Sz3dJ.png
No whitespace when I make it look like the pug result (just removing the spaces in console): https://i.stack.imgur.com/BWJxT.png