When you build a legend with a table in it, it is not possible to have a \t in the content.
\t will only be replaced by [TAB]. It's also not possible with \\t
With \n it is working fine. \n will be done as a newline \\n will be shown as \n.
Can be tested with the code in the next comment