Skip to content

Commit 598dcb4

Browse files
authored
add newline to end of po output
1 parent 0df3486 commit 598dcb4

14 files changed

+15
-15
lines changed

lib/pocompiler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ Compiler.prototype.compile = function () {
282282
}));
283283

284284
if (this._table.charset === 'utf-8' || this._table.charset === 'ascii') {
285-
return Buffer.from(response.join(eol + eol), 'utf-8');
285+
return Buffer.from(response.join(eol + eol) + eol, 'utf-8');
286286
}
287287

288-
return encoding.convert(response.join(eol + eol), this._table.charset);
288+
return encoding.convert(response.join(eol + eol) + eol, this._table.charset);
289289
};

test/fixtures/error-double-escaped-quote.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ msgstr ""
1818

1919
# Double-escaped double quote
2020
msgid "o2"
21-
msgstr "t2\\"-4\\""
21+
msgstr "t2\\"-4\\""

test/fixtures/error-unescaped-quote.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ msgstr ""
1818

1919
# Unescaped double quote
2020
msgid "o1"
21-
msgstr "t1"-4""
21+
msgstr "t1"-4""

test/fixtures/headers-case.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ msgstr ""
55
"Content-Transfer-Encoding: 8bit\n"
66
"Plural-Forms: nplurals=2; plural=(n!=1);\n"
77
"Mime-Version: 1.0\n"
8-
"X-Poedit-SourceCharset: UTF-8\n"
8+
"X-Poedit-SourceCharset: UTF-8\n"

test/fixtures/headers-charset.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ msgstr ""
44
"Content-Type: text/plain; charset=UTF-8\n"
55

66
msgid "test"
7-
msgstr "test"
7+
msgstr "test"

test/fixtures/latin13.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ msgctxt "c2"
5757
msgid "co2-1"
5858
msgid_plural "co2-2"
5959
msgstr[0] "ct2-1"
60-
msgstr[1] "ct2-2"
60+
msgstr[1] "ct2-2"

test/fixtures/obsolete.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ msgstr "Test msgstr"
2020
#, fuzzy
2121
#~ msgctxt "Obsolete context"
2222
#~ msgid "Obsolete message"
23-
#~ msgstr "One line string"
23+
#~ msgstr "One line string"

test/fixtures/plural.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ msgid_plural ""
3030
"o2-2\n"
3131
"o2-3\n"
3232
"o2-4"
33-
msgstr[0] ""
33+
msgstr[0] ""

test/fixtures/sort-test.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ msgid "cccc"
1111
msgstr "cccc"
1212

1313
msgid "dddd"
14-
msgstr "dddd"
14+
msgstr "dddd"

test/fixtures/sort-with-msgctxt-test.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ msgid "bbbb"
1212
msgstr "bbbb"
1313

1414
msgid "cccc"
15-
msgstr "cccc"
15+
msgstr "cccc"

0 commit comments

Comments
 (0)