gulp-file-include icon indicating copy to clipboard operation
gulp-file-include copied to clipboard

Indent

Open seantreanor opened this issue 7 years ago • 2 comments

Hi

I am having an issue with indentation when including content.

The image below is the output destination for compiling:

screen shot 2017-06-16 at 00 21 23

The image below is the partial that I am compiling:

screen shot 2017-06-16 at 00 21 26

This image shows the output of what I am receiving. Is this something that I can fix with options?

screen shot 2017-06-16 at 00 21 18

Can you please help or point me in the right direction on how to fix this issue.

Thanks in advance

seantreanor avatar Jun 15 '17 23:06 seantreanor

maybe, you can do like this. index.html

<html>
@@include('head.html', {
    "title": "page title"
})
</html>

woden0415 avatar Aug 06 '17 05:08 woden0415

You should add indent:true in your fileinclude pipe: .pipe( fileinclude({ indent: true }) )

anton-dubrovin avatar Jan 22 '18 18:01 anton-dubrovin