Skip to content

Commit

Permalink
copied change from pr 468
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandervoord committed Mar 10, 2024
1 parent 3232b72 commit dddd01d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2007-23 Mike Karlesky, Mark VanderVoord, Greg Williams
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, Greg Williams

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 2 additions & 1 deletion lib/cmock_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def create_skeleton_source_file(mock_project)
if existing.empty?
create_source_header_section(file, fullname, blank_project)
else
file << existing << "\n"
file << existing
file << "\n" if existing[-1] != "\n"
end
mock_project[:parsed_stuff][:functions].each do |function|
create_function_skeleton(file, function, existing)
Expand Down

0 comments on commit dddd01d

Please sign in to comment.