From dddd01dfa706828574555838a894450429848495 Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Sat, 9 Mar 2024 19:08:11 -0500 Subject: [PATCH] copied change from pr 468 --- LICENSE.txt | 2 +- lib/cmock_generator.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/LICENSE.txt b/LICENSE.txt index 06f2b75..04fd3e8 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -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 diff --git a/lib/cmock_generator.rb b/lib/cmock_generator.rb index cc05631..1e71055 100644 --- a/lib/cmock_generator.rb +++ b/lib/cmock_generator.rb @@ -140,7 +140,8 @@ class CMockGenerator 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)