D
D
dasdasdasda2021-03-14 14:29:53
HTML
dasdasdasda, 2021-03-14 14:29:53

How to format elements nested in li, a, p tags in Pug?

for example code

li.list__item
    a(href="#")


compiles to I want a line break and indent

<li class="list__item"><a href="#"></a></li>


<li class="list__item">
    <a href="#"></a>
</li>


hyphens in Pug don't help

li.list__item
    |
    |
    a(href="#")
    |
    |


they compile to code like this, with an extra line break

<li class="list__item">
    
    <a href="#"></a>
</li>

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