fix extra newline added after editing margin or padding