Skip to content

Commit

Permalink
Replace a strip call with a more appropriate rstrip
Browse files Browse the repository at this point in the history
Thank you for the suggestion @AliSoftware.

See #297 (comment)
  • Loading branch information
mokagio committed Sep 6, 2021
1 parent 28dba6d commit f7ecdfd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def generate_block(fw)

if line_count <= 1
# Single line output
fw.puts("msgid \"#{File.open(@content_file_path, 'r').read.strip}\"")
fw.puts("msgid \"#{File.open(@content_file_path, 'r').read.rstrip}\"")
else
# Multiple line output
fw.puts('msgid ""')
Expand Down

0 comments on commit f7ecdfd

Please sign in to comment.