Fix empty line issues on diff page