-
Notifications
You must be signed in to change notification settings - Fork 31
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
Added 'useCRLF' option #49
base: master
Are you sure you want to change the base?
Conversation
@evergreen-lee-campbell Thank you for your contribution.
/(\r?\n?)([ \t]*)(<!--\s*build:(\w+(?:-\w+)*)\s*-->)\n?([\s\S]*?)\n?(<!--\s*endbuild\s*-->)\n?/ig or /(\n?|\r\n?)([ \t]*)(<!--\s*build:(\w+(?:-\w+)*)\s*-->)\n?([\s\S]*?)\n?(<!--\s*endbuild\s*-->)\n?/ig just work without any new config options? Could you test it please? |
I like this option. And I already use @evergreen-lee-campbell 's repository in my |
Notepad and sublime aren't attempting to do line endings normalization and basically ok with mixed LF and CRLF in one file. But if one using Visual Studio or there is a git autocrlf then there is an extra lines problem. Regexp that solved problem for me: |
I have tried, modified my local dependent version as what @evergreen-lee-campbell committed. it works fine! why @VFK doesn't merge it to master and release it? |
I wrote a test case project as below:
template file is from src/index.html, and output file is dist/index.html. endbuild but in Windows, the character 0x0a presents 3 times between the two tags. |
Added a 'useCRLF' option to prevent a new linefeed appearing every time the gulp task is run on Windows machines.
Resolves #42