diff options
author | Norbert Preining <norbert@preining.info> | 2024-02-20 03:01:19 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-02-20 03:01:19 +0000 |
commit | 203d8df9dde93676afcceb5ace315faeda77d016 (patch) | |
tree | 648ea4ae015ff2a7b20bd239d3377cca6dcabfe3 /macros/luatex/generic/luatexja/src/ltj-lineskip.lua | |
parent | e11a34ebeb96a1e568cc937df3b614062ddb0adf (diff) |
CTAN sync 202402200301
Diffstat (limited to 'macros/luatex/generic/luatexja/src/ltj-lineskip.lua')
-rw-r--r-- | macros/luatex/generic/luatexja/src/ltj-lineskip.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/macros/luatex/generic/luatexja/src/ltj-lineskip.lua b/macros/luatex/generic/luatexja/src/ltj-lineskip.lua index 107ee804a8..a2de19140e 100644 --- a/macros/luatex/generic/luatexja/src/ltj-lineskip.lua +++ b/macros/luatex/generic/luatexja/src/ltj-lineskip.lua @@ -49,6 +49,19 @@ function ltjl.setting(profiler, skip_method) end do + local backup + function ltjl.setting_backup() + backup = { ltj_profiler, ltj_skip } + ltj_profiler, ltj_skip = ltjl.p_dummy, ltjl.l_dummy + end + function ltjl.setting_restore() + if backup then + ltj_profiler, ltj_skip, backup = backup[1], backup[2], nil + end + end +end + +do local traverse_id = node.direct.traverse_id local function adjust_glue(nh) local h = to_direct(nh) |