Pretty print attribute targets

Fix #152.