Skip to content

Commit

Permalink
remove capion hook code that was reintroduced in a merge in 205257e (…
Browse files Browse the repository at this point in the history
…oops..)
  • Loading branch information
Udi-Fogiel committed Nov 24, 2024
1 parent 83b1cbf commit ac49496
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tex/polyglossia.sty
Original file line number Diff line number Diff line change
Expand Up @@ -1480,19 +1480,10 @@
{
% we might be outside of l3 catcode regime
\tl_set_eq:NN \xpg@current@opts \xpg__current_options_tl
\__xpg_save_caption:n { #1 } [ { \selectlanguage*[\xpg@current@opts]{\languagename}#2 } ] { #3 }
\__xpg_save_caption:n { #1 } [ { \xpg@aux{\xpg@current@opts}{\languagename}#2 } ] { #3 }
}
}
% Since captions might float to other language regions,
% we need to change the language here (#542)
\hook_gput_code:nnn {cmd/caption/before} {.}
{
\ifhmode\unskip\fi
\addtocontents{lof}{\protect\setforeignlanguage{\languagename}}
\addtocontents{lot}{\protect\setforeignlanguage{\languagename}}
}
% Initialize default language options, so that
% \iflanguageoption has the info it needs also
% for default settings
Expand Down

0 comments on commit ac49496

Please sign in to comment.