S
S
Sergey Burduzha2019-02-15 18:14:23
Pug
Sergey Burduzha, 2019-02-15 18:14:23

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="Барбершоп «Бородинский»")

turns into
<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>

What else have I not learned?
Thanks in advance for your help.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question