diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-18 11:28:29 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-18 11:28:29 +0000 |
commit | 0257599036ceb3658b27a4de07834ca0d2fa418e (patch) | |
tree | 7ccdefd8f9188a0b1a8ff7cbda9ce684ffa5899b | |
parent | 8e5ba693ad9377fbf4b047093624248b81eac854 (diff) |
patch 8.2.4412: translation cleanup script does not remove empty lines at endv8.2.4412
Problem: Translation cleanup script does not remove empty lines at end.
Solution: Remove empty lines at the end. (Ken Takata, closes #9794)
-rw-r--r-- | src/po/cleanup.vim | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 0 deletions
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 @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4412, +/**/ 4411, /**/ 4410, |