diff options
author | Karl Berry <karl@freefriends.org> | 2015-11-03 22:27:20 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-11-03 22:27:20 +0000 |
commit | bab84ae64aecc934ad3b02c1003e4eabe387e813 (patch) | |
tree | 232802f7122f779a8a4d365ec805de0adbe652d3 /Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua | |
parent | 14c29b37fc08cd01cf10e7c7816e28734950cd92 (diff) |
luatexja (3nov15)
git-svn-id: svn://tug.org/texlive/trunk@38771 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.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua b/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua index b334ed46426..a4f2ff2003a 100644 --- a/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua +++ b/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua @@ -140,6 +140,7 @@ do local node_traverse = node.traverse local STCK = luatexja.userid_table.STCK local IHB = luatexja.userid_table.IHB + local sid_local = node.subtype('local_par') local function test_list(h, lv) if not h then @@ -149,14 +150,15 @@ do local w for p in node_traverse(h) do if p.id==id_whatsit then - if p.subtype==sid_user then + local ps = p.subtype + if ps==sid_user then local uid= p.user_id if uid==DIR then flag = 1; w = w or p -- found elseif not(uid==IHB or uid==STCK) then flag = 0; break -- error end - else + elseif ps~=sid_local then flag = 0; break end else |