summaryrefslogtreecommitdiff
path: root/tex/context/base/typo-lin.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/typo-lin.lua')
-rw-r--r--tex/context/base/typo-lin.lua15
1 files changed, 7 insertions, 8 deletions
diff --git a/tex/context/base/typo-lin.lua b/tex/context/base/typo-lin.lua
index 3bc18bd52..f9761fe64 100644
--- a/tex/context/base/typo-lin.lua
+++ b/tex/context/base/typo-lin.lua
@@ -60,18 +60,16 @@ local nuts = nodes.nuts
local nodecodes = nodes.nodecodes
local gluecodes = nodes.gluecodes
local listcodes = nodes.listcodes
-local whatcodes = nodes.whatsitcodes
local hlist_code = nodecodes.hlist
local glue_code = nodecodes.glue
local kern_code = nodecodes.kern
-local whatsit_code = nodecodes.whatsit
local line_code = listcodes.line
+local localpar_code = nodecodes.localpar
local userskip_code = gluecodes.userskip
local leftskip_code = gluecodes.leftskip
local rightskip_code = gluecodes.rightskip
local parfillskip_code = gluecodes.parfillskip
-local localpar_code = nodecodes.localpar or whatcodes.localpar
local tonut = nodes.tonut
local tonode = nodes.tonode
@@ -89,6 +87,7 @@ local getlist = nuts.getlist
local getid = nuts.getid
local getnext = nuts.getnext
local getprev = nuts.getprev
+local getboth = nuts.getboth
local getfield = nuts.getfield
local setfield = nuts.setfield
@@ -188,9 +187,10 @@ local function normalize(line,islocal) -- assumes prestine lines, nothing pre/ap
current = getnext(head)
id = getid(current)
end
- if (id == localpar_code) or (id == whatsit_code and getsubtype(head) == localpar_code) then
- head = remove_node(head,head,true)
- end
+-- no:
+-- if id == localpar_code then
+-- head = remove_node(head,head,true)
+-- end
local tail = find_tail(head)
local current = tail
local id = getid(current)
@@ -357,8 +357,7 @@ function paragraphs.moveinline(n,blob,dx,dy)
local line = type(n) ~= "table" and getprop(n,"line") or n
if line then
if dx ~= 0 then
- local prev = getprev(blob)
- local next = getnext(blob)
+ local prev, next = getboth(blob)
if prev and getid(prev) == kern_code then
setfield(prev,"kern",getfield(prev,"kern") + dx)
end