Skip to content

Commit

Permalink
Fix extra new line when customising gemfiles
Browse files Browse the repository at this point in the history
When using `customize_gemfiles`, two new line characters end up being
inserted after the block comment, but it should only be one. This trims
out the output to remove it.

Fixes thoughtbot#216.
  • Loading branch information
joe-sharp authored and nickcharlton committed Mar 26, 2024
1 parent 2338a1e commit 712e708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/appraisal/customize.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Appraisal
class Customize
def initialize(heading: nil, single_quotes: false)
@@heading = heading
@@heading = heading&.chomp
@@single_quotes = single_quotes
end

Expand Down

0 comments on commit 712e708

Please sign in to comment.