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
How to clean HTML code from extra spaces? #10281
Comments
You probably want to write Remember you can use the forum or the Discord chat to ask quick questions! |
@posva That is, I need to wrap all the variables? |
If you don't want extra space, yes, that's how HTML work: <span>Some text</span> is different from <span>
Some Text
</span> |
@posva Your way works. Thank. |
You could, I wouldn't use pug personally. Anyway, please ask questions in the forum or chats 🙂 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.6.10
Reproduction link
https://jsfiddle.net/chrLg4uk/
Steps to reproduce
What is expected?
I want to remove these spaces. I can not imagine how you can write an HTML tag and a variable on one line. Especially when a lot of classes and other attributes.
What is actually happening?
Cannot remove extra spaces. Need to write a variable on a single line with an HTML tag.
The text was updated successfully, but these errors were encountered: