attr formatting