Remove unnecessary empty lines from forms