A
A
AndWEB2018-12-30 15:00:54
HTML
AndWEB, 2018-12-30 15:00:54

How to remove spaces in text that pug does?

When using this construction, spaces appear in front of the text in html.

h1.header__title.page-title 
      | Lorem
      br 
      | Lorem lorem lorem

5c28b36b908d8456632056.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dom1n1k, 2018-12-30
@AndWEB

In this particular case, everything is simple
https://pugjs.org/language/interpolation.html#tag-...
But in general, the problem of whitespace management in Pug really exists, and this is one of the key disadvantages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question