erasing extra lines enhancement

support for erase the extra lines after ‘{‘ and before ‘}’ and lines
between