Answer the question
In order to leave comments, you need to log in
How to make jade output everything in its original format?
So it goes.
I am compiling the layout in Gulp with the Jade html preprocessor.
And this is the problem: it displays inline tags in one line:
although I prescribe them with line breaks in the .jade file.
I use the option pretty: true
, without it the html output is generally compressed.
In the future, the layout will be put on Bitrix, so it’s not worth giving it to the backend, I would like it to be structured (saving transfers and their number).
How to achieve beautiful html?
Answer the question
In order to leave comments, you need to log in
Install yourself gulp-html-prettify and after compiling from jade to html, run through it again.
You can instead pretty: true
specify pretty: ' '
In quotes, specify the desired number of spaces / indents.
gulp-html-prettify does the same.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question