remove unneccessary newline character on attributes output