Commit 81cd25a0 by Mike Gunderloy

Inserting newline requires double-quoted string

parent a43c08f0
...@@ -146,7 +146,7 @@ module AnnotateModels ...@@ -146,7 +146,7 @@ module AnnotateModels
if new_content == old_content if new_content == old_content
old_content.sub!(encoding, '') old_content.sub!(encoding, '')
new_content = options[:position] == 'after' ? new_content = options[:position] == 'after' ?
(encoding_header + (old_content =~ /\n$/ ? old_content : old_content + '\n') + info_block) : (encoding_header + (old_content =~ /\n$/ ? old_content : old_content + "\n") + info_block) :
(encoding_header + info_block + old_content) (encoding_header + info_block + old_content)
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment