summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/cloze
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/cloze')
-rwxr-xr-xMaster/texmf-dist/scripts/cloze/cloze.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/Master/texmf-dist/scripts/cloze/cloze.lua b/Master/texmf-dist/scripts/cloze/cloze.lua
index dc05de9af43..aa48473a349 100755
--- a/Master/texmf-dist/scripts/cloze/cloze.lua
+++ b/Master/texmf-dist/scripts/cloze/cloze.lua
@@ -75,10 +75,8 @@ end
function nodex.create_linefil()
local glue = node.new('glue')
glue.subtype = 100
- local glue_spec = node.new('glue_spec')
- glue_spec.stretch = 65536
- glue_spec.stretch_order = 3
- glue.spec = glue_spec
+ glue.stretch = 65536
+ glue.stretch_order = 3
local rule = nodex.create_line(0)
rule.dir = 'TLT'
glue.leader = rule
@@ -140,7 +138,7 @@ function registry.get_marker(item, mode, position)
end
function registry.get_marker_data(item)
if item.id == node.id('whatsit')
- and item.subtype == 44
+ and item.subtype == node.subtype('user_defined')
and item.user_id == registry.user_id then
return registry.get_storage(item.value)
else