Answer the question
In order to leave comments, you need to log in
Why are elements not newlined in pug?
Good afternoon.
I recently started learning pug and ran into a problem that I don't understand how to solve.
I added the pretty:true option to the gulpfile.
However, the tags still don't wrap to a new line.
header.page-header
a.page-header__logo
img.page-header__logo-image(src="assets/i/logotype-mobile.svg" width="228" height="30" alt="Барбершоп «Бородинский»")
<body>
<header class="page-header"><a class="page-header__logo"><img class="page-header__logo-image" src="assets/i/logotype-mobile.svg" width="228" height="30" alt="Барбершоп «Бородинский»"></a></header>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question