A
A
Alexander Belkevich2016-11-08 15:03:04
Pug
Alexander Belkevich, 2016-11-08 15:03:04

How to format final html?

Hello! The question is. I use gulp and jade.
gulp task config

gulp.task("jade", function() {
    return gulp.src(["app/jade/*.jade"])
    .pipe(jade({
        pretty: true
    })) 
    .pipe(gulp.dest('app'))
    .pipe(browserSync.reload({
        stream: true
    }))
})

But in the end the code
div.center
    a.order-call(href="#") Заказать звонок
    div.center-description
        span Понедельник - Пятница 09:00-19:00
  i (Заказы в личном кабинете принимаются круглосуточно)

turns into
<div class="center"><a href="#" class="order-call">Заказать звонок</a>
            <div class="center-description"><span>Понедельник - Пятница 09:00-19:00</span><i>(Заказы в личном кабинете принимаются круглосуточно)</i></div>
          </div>

Is it possible to somehow make new lines between spans and links?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2016-11-08
@AlexBelkevich

#answer_844626

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question