wiledal / gulp-include

Enables functionality similar to that of snockets / sprockets or other file insertion compilation tools.
158 stars 68 forks source link

When is the trailing line break necessary? #39

Closed erikreagan closed 9 years ago

erikreagan commented 9 years ago

I recently started using gulp-include to bring in multiple types of files (js, css, html snippets) into a final html file for a micro project. I noticed that with every use of include there's a new line break at the end of the text included.

Example, if I use the following:

<script type="text/javascript">
    //= include includes/scripts.inc.js
</script>

The last line of my file is simply a } but when rendered/included I end up with

<script type="text/javascript">
    // ... the rest of my file
    }

</script>

I poked around at the index.js file and noticed on line 87 that a line break is added. Is this line break fully necessary?

Thanks!

wiledal commented 9 years ago

This should be fixed in the latest version :100:

erikreagan commented 9 years ago

Thanks! :trophy: