Closed gbp closed 4 years ago
Also the same issue if the content uses \\n
instead of \n
Maybe I'm wrong.
Looking more into this gem's source it seems there is a test ensuring new lines are retained and expanding my test PO file to:
msgid ""
msgstr ""
"Language: en\n"
"Content-Type: text/plain; charset=UTF-8"
msgid "Line\nbrake 1"
msgstr "Line\nbrake 1"
msgid ""
"Line\n"
"brake 2"
msgstr ""
"Line\n"
"brake 2"
Now when using the gettext command line tools (msgmerge
/msgcat
etc), with --no-wrap
, results in:
msgid ""
msgstr ""
"Language: en\n"
"Content-Type: text/plain; charset=UTF-8\n"
msgid ""
"Line\n"
"brake 1"
msgstr ""
"Line\n"
"brake 1"
msgid ""
"Line\n"
"brake 2"
msgstr ""
"Line\n"
"brake 2"
I'm having issues with
GetText::Tools::MsgMerge
and theno-wrap
option when working with content with linebreaks, for example this test fails:Using
GetText::Tools::MsgMerge
returns:But from the command line:
We get... what we would expect: