From: Hironori Kitagawa Date: Sun, 20 Dec 2020 09:47:17 +0000 (+0900) Subject: fix #41020 X-Git-Tag: 20201224.0~12 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ce772e76f34f60e8f9c3edfdbac4b06df47cfa7d;p=luatex-ja%2Fluatexja.git fix #41020 --- diff --git a/src/ltj-adjust.lua b/src/ltj-adjust.lua index c7d145d..56effa3 100644 --- a/src/ltj-adjust.lua +++ b/src/ltj-adjust.lua @@ -287,7 +287,10 @@ local aw_step2, aw_step2_dummy do local node_hpack = node.direct.hpack local function repack(p) + local orig_of, orig_hfuzz, orig_hbad = tex.overfullrule, tex.hfuzz, tex.hbadness + tex.overfullrule=0; tex.hfuzz=1073741823; tex.hbadness=10000 local f = node_hpack(getlist(p), getfield(p, 'width'), 'exactly') + tex.overfullrule=orig_of; tex.hfuzz=orig_hfuzz; tex.hbadness=orig_hbad setfield(f, 'head', nil) setfield(p, 'glue_set', getfield(f, 'glue_set')) setfield(p, 'glue_order', getfield(f, 'glue_order'))