LaTeX template: skip \babelprovide if babel-lang is empty.

This avoids an error.  See #7945.
This commit is contained in:
John MacFarlane 2022-03-02 08:52:13 -08:00
parent c3cf339f1d
commit bc7f74968e

View file

@ -368,7 +368,9 @@ $if(lang)$
\else
\usepackage[bidi=default]{babel}
\fi
$if(babel-lang)$
\babelprovide[main,import]{$babel-lang$}
$endif$
$for(babel-otherlangs)$
\babelprovide[import]{$babel-otherlangs$}
$endfor$