Skip to content

Commit 0ed0661

Browse files
committed
Add new line at the end of file if needed
1 parent f96a1a4 commit 0ed0661

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/poeditor/core.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ def export(api_key:, project_id:, language:, type:, tags:nil)
8585
content.gsub!(/(%(\d+\$)?)@/, '\1s') # %@ -> %s
8686
end
8787

88+
unless content.end_with? "\n"
89+
content += "\n"
90+
end
8891
return content
8992
end
9093

0 commit comments

Comments
 (0)