8 lines
102 B
Sed
8 lines
102 B
Sed
|
/^%[%!]/b
|
||
|
s/%.*//
|
||
|
s/^[ ][ ]*//
|
||
|
s/[ ][ ]*$//
|
||
|
/^$/d
|
||
|
s|[ ]*\([][}{/]\)|\1|g
|
||
|
s|\([][}{/]\)[ ]*|\1|g
|