Skip to content

Commit

Permalink
Use language environments properly
Browse files Browse the repository at this point in the history
  • Loading branch information
moewew committed Mar 11, 2024
1 parent 70cad39 commit 134da03
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions tex/latex/biblatex/biblatex.sty
Original file line number Diff line number Diff line change
Expand Up @@ -6761,16 +6761,18 @@
{\blx@hook@initlang
\def\blx@endlang{%
\blx@hook@endlang
\csname end\blx@thelangenv\endcsname
\expandafter\end\expandafter{\blx@thelangenv}%
\endgroup}%
\iftoggle{blx@autolangbib}
{\let\blx@endlangbib\blx@endlang}
{}%
\iftoggle{blx@autolangcite}
{\let\blx@endlangcite\blx@endlang}
{}%
\csname\blx@thelangenv\expandafter\endcsname
\expandafter{\abx@field@langid}}}
\expandafter\expandafter\expandafter\begin
\expandafter\expandafter\expandafter{%
\expandafter\blx@thelangenv\expandafter}%
\expandafter{\abx@field@langid}}}
{}}}
{}%
\def\blx@imc@mainlang{%
Expand Down Expand Up @@ -6838,8 +6840,8 @@
\blx@hook@endlang
% Polyglossia language envs are \<lang>[]
\ifcsstring{blx@thelangenv}{langname}
{\csname end\abx@field@langid\endcsname}
{\csname end\blx@thelangenv\endcsname}%
{\expandafter\end\expandafter{\abx@field@langid}}
{\expandafter\end\expandafter{\blx@thelangenv}}%
\endgroup}%
\iftoggle{blx@autolangbib}
{\let\blx@endlangbib\blx@endlang}
Expand All @@ -6849,11 +6851,15 @@
{}%
\ifcsstring{blx@thelangenv}{langname}
{\ifdef\abx@field@langidopts
{\csname\abx@field@langid\expandafter\endcsname
\expandafter[\abx@field@langidopts]}
{\csname\abx@field@langid\endcsname}}
{\csname\blx@thelangenv\expandafter\endcsname
\expandafter{\abx@field@langid}}%
{\expandafter\expandafter\expandafter\begin
\expandafter\expandafter\expandafter{%
\expandafter\abx@field@langid\expandafter}%
\expandafter[\abx@field@langidopts]}
{\expandafter\begin\expandafter{\abx@field@langid}}}
{\expandafter\expandafter\expandafter\begin
\expandafter\expandafter\expandafter{%
\expandafter\blx@thelangenv\expandafter}%
\expandafter{\abx@field@langid}}%
\blx@beglang@spacefactors}}
{}}}
{}%
Expand Down

0 comments on commit 134da03

Please sign in to comment.