pryds/ve

Umwanted changes in the header after saving a file

Opened this issue · 0 comments

Ve changes the header of a po file in a way which is not desired, and there is obviously no configuration option to change the behavior. Example:

Before saving the file:

# German translation of foo.
# Copyright (C) 2014-2018 the authors of foo
# This file is distributed under the same license as the foo package.
#
# Here are some translator comments.
# 
# Mario Blättermann <me@example.com>, 2014-2018.
#

After saving the file:

# German translation of foo.
# Copyright (C) 2014-2018 the authors of foo
# This file is distributed under the same license as the foo package.
# Here are some translator comments.
# Mario Blättermann <me@example.com>, 2014-2018, 2018.

Ve removes empty comment lines which have been set for better readability. Moreover, it doesn't detect the years correctly, instead of accepting "2014-2018" as is, an extra "2018" will be added. So I'm forced to use a plain text editor to fix this again. Not that what I would expect.