Remove trailing newlines from each package field.