Skip to content

Ve puts newline in long header entry #18

@haaninjo

Description

@haaninjo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions