17 lines
218 B
Plaintext
Executable File
17 lines
218 B
Plaintext
Executable File
# blank-line activity:
|
|
# Merge adjacent blank lines. Loop til no change.
|
|
:blin
|
|
/^$/,/^ *[^ ]*.*$/{
|
|
/^$/N
|
|
s/^ *\n *$//
|
|
}
|
|
t blin
|
|
#
|
|
/^$/,/^ *[^ ]*.*$/{
|
|
/^$/N
|
|
# Transpose <blank line> <end comment>
|
|
/^ *\n\*\/$/c\
|
|
*\/\
|
|
|
|
}
|