Skip to content

Commit 52169db

Browse files
e-kwsmchrisbra
authored andcommitted
translation(cleanup): squeeze successive empty lines and remove stray comments
closes: #19860 Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 75661a6 commit 52169db

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/po/cleanup.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ silent g/^msgstr"/s//msgstr "/
2222
silent g/^msgid"/s//msgid "/
2323
silent g/^msgstr ""\(\n"\)\@!/?^msgid?,.s/^/#\~ /
2424

25+
" remove stray comment
26+
silent g/^\%(#.*\n\)\+\n/d
27+
2528
" Comments only useful for the translator
2629
silent g/^#\./d _
2730

2831
" clean up empty lines
29-
silent g/^\n\n\n/.d _
32+
silent g/^\n\n/.d _
3033
silent! %s/\n\+\%$//
3134

3235
if s:was_diff

0 commit comments

Comments
 (0)