empty longtblr errors
If a longtblr has no content (which can happen if the content is autogenerated) it errors:
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\begin{longtblr} {}
\end{longtblr}
\end{document}
gives
! Missing number, treated as zero.
<to be read again>
\__dim_eval_end:
l.144 \end
{longtblr}
It seems I need to throw a warning and not to build the table if rowcount equals zero (not only for long tables).
Any progress for this issue?
@dbitouze My current idea is to treat empty body as one-row and one-column with empty cell text. Empty cell is natural, but zero-row table is weird.
At this time, a tall or long table causes errors, while a short table doesn't cause errors but makes no output.
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\begin{tblr}{hlines,vlines}\end{tblr}
\begin{talltblr}{hlines,vlines}\end{talltblr}
\begin{longtblr}{hlines,vlines}\end{longtblr}
\end{document}
This bug has been fixed.
\documentclass{article}
\usepackage{tabularray}
\SetTblrTemplate{head}{empty}
\begin{document}
Short: \begin{tblr}{hlines,vlines}\end{tblr}
Tall: \begin{talltblr}{hlines,vlines}\end{talltblr}
Long: \begin{longtblr}{hlines,vlines}\end{longtblr}
\end{document}