From: Bram Moolenaar Date: Fri, 18 Feb 2022 11:28:29 +0000 (+0000) Subject: patch 8.2.4412: translation cleanup script does not remove empty lines at end X-Git-Tag: v8.2.4412 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=0257599036ceb3658b27a4de07834ca0d2fa418e;p=thirdparty%2Fvim.git 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 #9794) --- diff --git a/src/po/cleanup.vim b/src/po/cleanup.vim index b27d88092f..4bb7ae7a19 100644 --- 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 index 5cfd0a9e87..9db5ad3b04 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4412, /**/ 4411, /**/