Fix unexpected removal of newline in attr value