summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-06-07 20:08:17 +0000
committerKarl Berry <karl@freefriends.org>2021-06-07 20:08:17 +0000
commit1ac2fcf0f1fa828a6318a0b791f4255f7b2bcadc (patch)
tree173b6ff4c3a73b63c47d1e7d8e975bdf2c12ead5 /Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua
parent8fbbd462135b56104dcbd71eb341ad19abae51d0 (diff)
luatexja (7jun21)
git-svn-id: svn://tug.org/texlive/trunk@59518 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua')
-rw-r--r--Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua b/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua
index 47b4aec1d00..d7cdbd9364d 100644
--- a/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua
+++ b/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua
@@ -319,7 +319,7 @@ end
local create_dir_whatsit_vbox
do
local wh = {}
- local id_glue, sid_parskip = node.id 'glue', 3
+ local id_glue = node.id 'glue'
create_dir_whatsit_vbox = function (hd, gc)
ltjs.list_dir = get_dir_count()
-- remove dir whatsit
@@ -331,8 +331,8 @@ do
if hd==wh[1] then
ltjs.list_dir =has_attr(hd,attr_dir)
local x = node_next(hd)
- if getid(x)==id_glue and getsubtype(x)==sid_parskip then
- node_remove(hd,x); node_free(x)
+ while x and getid(x)==id_glue and getsubtype(x)==3 do
+ node_remove(hd,x); node_free(x); x = node_next(hd)
end
end
for i=1,#wh do
@@ -345,10 +345,10 @@ do
end
return hd
else
- local n =node_next(hd)
+ local n = node_next(hd)
if gc=='vtop' then
local w = create_dir_whatsit(hd, gc, ltjs.list_dir)
- -- move dir whatsit after hd
+ -- move dir whatsit after hd
setfield(hd, 'next', w); setfield(w, 'next', n)
return hd
else