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

Fixed newline being added to the skeleton file everytime the skeleton generator is invoked. #468

Closed
wants to merge 1 commit into from

Conversation

UCSIG
Copy link

@UCSIG UCSIG commented Feb 28, 2024

Every time the skeleton mock generator script cmock.rb is being called with the --skeleton option and a header file, a newline is being added at the end of the generated skeleton file.
I invoke the skeleton generator script every time I run unity tests, which results in lots of added newlines in the skeleton file.
This change adds a check whether the last character of the skeleton file is already a newline, and only adds the newline if it isn't already there.

@mvandervoord
Copy link
Member

Fixed.

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.

2 participants