mirego / accent

The first developer-oriented translation tool. True asynchronous flow between translators and your team.
https://www.accent.reviews
BSD 3-Clause "New" or "Revised" License
1.3k stars 98 forks source link

Invalid export of multi-line strings #261

Closed hedin-hiervard closed 1 year ago

hedin-hiervard commented 3 years ago

It's related to https://github.com/mirego/accent/issues/217

I'm using PO (gettext) format for import and export operations.

  1. Try setting the following text in UI:

(a)

line1
line2

or

(b)

line1

line2

or

(c)

line1

line2
  1. Export.
  2. What I see: every time the exported data is the same:
msgstr "line1\n"
"line2\n"
  1. What I expect: different output.

(a)

msgstr "line1\n"
"line2\n"

(b)

msgstr "line1\n"
"\n"
"line2\n"

(c)

msgstr "line1\n"
"\n"
"\n"
"line2\n"
simonprev commented 1 year ago

I refactored the Gettext serializer in v1.13.0 that I just released. You can open a new issue if there are still problems