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

Prevent adding a new line at the end of the modified file #26

Merged
merged 1 commit into from
Nov 18, 2019

Conversation

jalbrzym
Copy link
Contributor

@jalbrzym jalbrzym commented Nov 17, 2019

The current version of RegEx Find & Replace task always leaves an empty line at the end of the modified file.

I think that only parts matched by regex should be changed and the rest of the modified file should remain untouched. It's especially crucial in cases of further files comparing.

I've added the -NoNewLine flag to the Set-Content cmdlet invocation. That omits to add a new line at the end of the modified file.

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

Successfully merging this pull request may close these issues.

None yet

2 participants