]> granicus.if.org Git - vim/commitdiff
patch 8.2.4412: translation cleanup script does not remove empty lines at end v8.2.4412
authorBram Moolenaar <Bram@vim.org>
Fri, 18 Feb 2022 11:28:29 +0000 (11:28 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 18 Feb 2022 11:28:29 +0000 (11:28 +0000)
Problem:    Translation cleanup script does not remove empty lines at end.
Solution:   Remove empty lines at the end. (Ken Takata, closes #9794)

src/po/cleanup.vim
src/version.c

index b27d88092f6f0fb5ad04f1c9791b37c141e4a348..4bb7ae7a19ec184f920cb31c3ed0040b93525d91 100644 (file)
@@ -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
index 5cfd0a9e87f8cccd1a0e3fc3148790706dac42f6..9db5ad3b0451f197c5b196830f47005737b76378 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4412,
 /**/
     4411,
 /**/