translation(cleanup): squeeze successive empty lines and remove stray comments
Commit: https://github.com/vim/vim/commit/52169dbc285724cf2ba5956426fa08d26c6f4672 Author: Eisuke Kawashima <[email protected]> Date: Tue Mar 31 19:12:36 2026 +0000 translation(cleanup): squeeze successive empty lines and remove stray comments closes: https://github.com/vim/vim/issues/19860 Signed-off-by: Eisuke Kawashima <[email protected]> Signed-off-by: Christian Brabandt <[email protected]> diff --git a/src/po/cleanup.vim b/src/po/cleanup.vim index 5e1b96799..b5b207e1e 100644 --- a/src/po/cleanup.vim +++ b/src/po/cleanup.vim @@ -22,11 +22,14 @@ silent g/^msgstr"/s//msgstr "/ silent g/^msgid"/s//msgid "/ silent g/^msgstr ""\( "\)\@!/?^msgid?,.s/^/#\~ / +" remove stray comment +silent g/^\%(#.* \)\+ /d + " Comments only useful for the translator silent g/^#\./d _ " clean up empty lines -silent g/^ /.d _ +silent g/^ /.d _ silent! %s/ \+\%$// if s:was_diff -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1w7eYJ-00FJdL-Jy%40256bit.org.
