Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ve puts newline in long header entry #18

Open
haaninjo opened this issue May 28, 2014 · 1 comment
Open

Ve puts newline in long header entry #18

haaninjo opened this issue May 28, 2014 · 1 comment

Comments

@haaninjo
Copy link

Hi,
thanks for a very useful program.

I noticed that when i save a .po file from Gnome in Ve, it has an extra newline character added that breaks up a header entry and makes other editors like poedit complain.

Minimal testing file: https://l10n.gnome.org/POT/gnome-themes-standard.master/gnome-themes-standard.master.sv.po

That file has a header entry named ""Report-Msgid-Bugs-To" that is separated in two lines due to its length. This looks like:
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-"
"themes-standard&keywords=I18N+L10N&component=general\n"

Note that the first line does not have a "\n". If I now open that file in Ve and save it, that line now gets a "\n" added. This makes it look like this:
"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-\n"
"themes-standard&keywords=I18N+L10N&component=general\n"

This is now treated as two header entries, causing poedit to complain about "Malformed header: 'themes-standard&keywords=I18N+L10N&component=general'"

Regards,
Anders Jonsson

@Artoria2e5
Copy link

This looks more like a POedit bug, for such file still looks like fully valid gettext file, just not like generated by GNU's tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants