From 5b6c988b06dc81c2e8cac54bf4d0a064d99b9063 Mon Sep 17 00:00:00 2001 From: udifogiel Date: Wed, 22 Apr 2026 20:55:31 +0300 Subject: [PATCH] remove assertion of direction matching between begin/end dir nodes LuaTeX does not really care about the direction of an enddir node, it only consider it as a flag to pop the current dir, and restore the old one (see pdflistout.c). --- src/luaotfload-harf-plug.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/src/luaotfload-harf-plug.lua b/src/luaotfload-harf-plug.lua index b087c839..920cf83f 100644 --- a/src/luaotfload-harf-plug.lua +++ b/src/luaotfload-harf-plug.lua @@ -240,7 +240,6 @@ local function itemize(head, fontid, direction) local dir, cancel = getdirection(n) local direction, kind = getdirection(n) if cancel then - assert(currdir == dir) -- Pop the last direction from the stack. currdir = tableremove(dirstack) else