summaryrefslogtreecommitdiff
path: root/tex/context/base/typo-brk.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2011-02-25 22:03:00 +0100
committerHans Hagen <pragma@wxs.nl>2011-02-25 22:03:00 +0100
commit3c5dbaefc44f38d6da23a7db2c06a0a4af0996fa (patch)
treec3ad9361af8d3f1dd37de52463fa505680446a1e /tex/context/base/typo-brk.lua
parent15ee46403d36de6f29b4e45171e061708ec69193 (diff)
downloadcontext-3c5dbaefc44f38d6da23a7db2c06a0a4af0996fa.tar.gz
beta 2011.02.25 22:03
Diffstat (limited to 'tex/context/base/typo-brk.lua')
-rw-r--r--tex/context/base/typo-brk.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/tex/context/base/typo-brk.lua b/tex/context/base/typo-brk.lua
index afea669ca..d26f62a07 100644
--- a/tex/context/base/typo-brk.lua
+++ b/tex/context/base/typo-brk.lua
@@ -29,7 +29,7 @@ local free_node = node.free
local insert_node_before = node.insert_before
local insert_node_after = node.insert_after
local remove_node = nodes.remove -- ! nodes
-local tonodes = blobs.tonodes
+local link_nodes = nodes.link
local texattribute = tex.attribute
@@ -152,7 +152,9 @@ methods[5] = function(head,start,settings) -- x => p q r
head, start = insert_node_before(head,start,new_disc())
local attr = tmp.attr
start.attr = copy_nodelist(attr) -- todo: critical only
- start.pre, start.post, start.replace = tonodes(settings.right,tmp,attr), tonodes(settings.left,tmp,attr), tonodes(settings.middle,tmp,attr)
+ start.pre = link_nodes(settings.right,tmp,attr)
+ start.post = link_nodes(settings.left,tmp,attr)
+ start.replace = link_nodes(settings.middle,tmp,attr)
free_node(tmp)
insert_break(head,start,10000,10000)
end