mirror of
https://github.com/neovim/neovim.git
synced 2026-08-30 02:51:48 +00:00
vim-patch:52169db: translation(cleanup): squeeze successive empty lines and remove stray comments
closes: vim/vim#19860
52169dbc28
Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
This commit is contained in:
@@ -22,11 +22,14 @@ silent g/^msgstr"/s//msgstr "/
|
||||
silent g/^msgid"/s//msgid "/
|
||||
silent g/^msgstr ""\(\n"\)\@!/?^msgid?,.s/^/#\~ /
|
||||
|
||||
" remove stray comment
|
||||
silent g/^\%(#.*\n\)\+\n/d
|
||||
|
||||
" Comments only useful for the translator
|
||||
silent g/^#\./d _
|
||||
|
||||
" clean up empty lines
|
||||
silent g/^\n\n\n/.d _
|
||||
silent g/^\n\n/.d _
|
||||
silent! %s/\n\+\%$//
|
||||
|
||||
if s:was_diff
|
||||
|
||||
Reference in New Issue
Block a user