# HG changeset patch # User Bram Moolenaar # Date 1645183804 -3600 # Node ID 5d26e9a7f8f218410ca3915090b630ac9647c54b # Parent df3a758a62ba139a9e11ff896f7c663b7ca9315e patch 8.2.4412: translation cleanup script does not remove empty lines at end Commit: https://github.com/vim/vim/commit/0257599036ceb3658b27a4de07834ca0d2fa418e Author: Bram Moolenaar Date: Fri Feb 18 11:28:29 2022 +0000 patch 8.2.4412: translation cleanup script does not remove empty lines at end Problem: Translation cleanup script does not remove empty lines at end. Solution: Remove empty lines at the end. (Ken Takata, closes https://github.com/vim/vim/issues/9794) diff --git a/src/po/cleanup.vim b/src/po/cleanup.vim --- a/src/po/cleanup.vim +++ b/src/po/cleanup.vim @@ -18,7 +18,9 @@ silent g/^msgstr"/s//msgstr "/ silent g/^msgid"/s//msgid "/ silent g/^msgstr ""\(\n"\)\@!/?^msgid?,.s/^/#\~ / +" clean up empty lines silent g/^\n\n\n/.d +silent! %s/\n\+\%$// if s:was_diff setl diff diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4412, +/**/ 4411, /**/ 4410,