Why is '#table(' producing incorrect output?

Hi @Andrew_van_der_Spuy, I have tagged and formatted the post. Please check your DMs as I have sent you a notice on how to properly post on this forum.