Skip to content

Commit

Permalink
Strip trailing new line when generating .pot for "standard" block
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio committed Aug 24, 2021
1 parent 52a166e commit c5708ba
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}\"")
fw.puts("msgid \"#{File.open(@content_file_path, 'r').read.strip}\"")
else
# Multiple line output
fw.puts('msgid ""')
Expand Down

0 comments on commit c5708ba

Please sign in to comment.