attrib_list fixes

I noticed a bug and some small formatting errors while looking at this again.