Fixed: Funcs that convert tags to strings output tabs/attributes twice and in the wrong order.