Skip to content

Two <BLANKLINE> in generated PO EOFs #799

Open

Description

@mondeja

As is documented, write_po function renders two blank lines at the end of the file. GNU gettext documentation about PO files does not specify that this is mandatory.

I think that this makes no sense, but maybe something could explain why this has been the choice. It creates inconsistent output in diffs, uneeded extra space in disk, and so on... it is just a bad practice for text files.

Activity

  1. akx commented on Jan 25, 2022

    @akx
    Member

    Each message is followed by a trailing newline:

    _write('\n')

    It's easier to just print one rather than try to figure out when we're printing the last entry and elide the trailing newline.

    Patches welcome, of course :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions