Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When is the trailing line break necessary? #39

Closed
erikreagan opened this issue Apr 13, 2015 · 2 comments
Closed

When is the trailing line break necessary? #39

erikreagan opened this issue Apr 13, 2015 · 2 comments

Comments

@erikreagan
Copy link

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
Copy link
Owner

wiledal commented Jun 30, 2015

This should be fixed in the latest version 💯

@erikreagan
Copy link
Author

Thanks! 🏆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants