summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-02-04 22:21:15 +0000
committerKarl Berry <karl@freefriends.org>2022-02-04 22:21:15 +0000
commit0e90fd83763d63a3460c4a730b3377f02dbfd088 (patch)
tree4d8d172ca2a14fcfe321f80ae37a2d3bc0db3f42 /Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua
parent1bde92bd528b3ba41950517fa33b93fa3005f691 (diff)
lua-widow-control (4feb22)
git-svn-id: svn://tug.org/texlive/trunk@61880 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua')
-rw-r--r--Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua b/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua
index 56fa77e9915..9a8b2efa781 100644
--- a/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua
+++ b/Master/texmf-dist/tex/luatex/lua-widow-control/lua-widow-control.lua
@@ -65,8 +65,8 @@ if lwc.context then
elseif lwc.plain or lwc.latex then
luatexbase.provides_module {
name = lwc.name,
- date = "2022/01/30", --%%date
- version = "1.1.3", --%%version
+ date = "2022/02/04", --%%date
+ version = "1.1.4", --%%version
description = [[
This module provides a LuaTeX-based solution to prevent
@@ -195,7 +195,7 @@ function lwc.save_paragraphs(head)
-- Offset the accumulated \\prevdepth
local prevdepth = node.new("glue")
- prevdepth.width = -1 * long_info.prevdepth
+ prevdepth.width = natural_info.prevdepth - long_info.prevdepth
last(long_node).next = prevdepth
table.insert(lwc.paragraphs, {demerits = long_demerits, node = long_node})