Copied from matlab tidy -- removed everthing except removal of blank
lines