From 752b54e41884419bc256f0b18222a7fc40c3ebe4 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 26 Feb 2022 22:42:45 +0000
Subject: babel (26feb22)

git-svn-id: svn://tug.org/texlive/trunk@62202 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/generic/babel/luababel.def | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'Master/texmf-dist/tex/generic/babel/luababel.def')

diff --git a/Master/texmf-dist/tex/generic/babel/luababel.def b/Master/texmf-dist/tex/generic/babel/luababel.def
index 15be747ccc1..f0682627191 100644
--- a/Master/texmf-dist/tex/generic/babel/luababel.def
+++ b/Master/texmf-dist/tex/generic/babel/luababel.def
@@ -1437,7 +1437,8 @@ end
         \AddToHook{env/align*/begin}{\bbl@ams@preset\bbl@ams@lap}%
         \AddToHook{env/eqnalign/begin}{\bbl@ams@preset\hbox}%
         % Hackish, for proper alignment. Don’t ask me why it works!:
-        \AddToHook{env/align*/end}{\iftag@\else\tag*{}\fi}%
+        \bbl@exp{% Avoid a 'visible' conditional
+          \\\AddToHook{env/align*/end}{\<iftag@>\<else>\\\tag*{}\<fi>}}%
         \AddToHook{env/flalign/begin}{\bbl@ams@preset\hbox}%
         \AddToHook{env/split/before}{%
           \ifnum\bbl@thetextdir>\z@
@@ -1451,7 +1452,8 @@ end
                \fi}%
              {}%
           \fi}%
-      \fi}
+      \fi
+    \fi}
 \fi
 \ifx\bbl@opt@layout\@nnil\endinput\fi  % if no layout
 \ifnum\bbl@bidimode>\z@
-- 
cgit v1.2.3

