summaryrefslogtreecommitdiff
path: root/tex/context/base/node-fin.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/node-fin.lua')
-rw-r--r--tex/context/base/node-fin.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/tex/context/base/node-fin.lua b/tex/context/base/node-fin.lua
index aabcb0db0..74b8daf2a 100644
--- a/tex/context/base/node-fin.lua
+++ b/tex/context/base/node-fin.lua
@@ -14,6 +14,7 @@ local texsprint = tex.sprint
local ctxcatcodes = tex.ctxcatcodes
local glyph = node.id('glyph')
+local disc = node.id('disc')
local glue = node.id('glue')
local rule = node.id('rule')
local whatsit = node.id('whatsit')
@@ -202,7 +203,8 @@ local function process(namespace,attribute,head,inheritance,default) -- one attr
local id = stack.id
-- we need to deal with literals too (reset as well as oval)
-- if id == glyph or (id == whatsit and stack.subtype == 8) or (id == rule and stack.width ~= 0) or (id == glue and stack.leader) then -- or disc
- if id == glyph or (id == rule and stack.width ~= 0) or (id == glue and stack.leader) then -- or disc
+ if id == glyph -- or id == disc
+ or (id == rule and stack.width ~= 0) or (id == glue and stack.leader) then -- or disc
local c = has_attribute(stack,attribute)
if c then
if default and c == inheritance then
@@ -287,7 +289,8 @@ local function selective(namespace,attribute,head,inheritance,default) -- two at
local id = stack.id
-- we need to deal with literals too (reset as well as oval)
-- if id == glyph or (id == whatsit and stack.subtype == 8) or (id == rule and stack.width ~= 0) or (id == glue and stack.leader) then -- or disc
- if id == glyph or (id == rule and stack.width ~= 0) or (id == glue and stack.leader) then -- or disc
+ if id == glyph -- or id == disc
+ or (id == rule and stack.width ~= 0) or (id == glue and stack.leader) then -- or disc
local c = has_attribute(stack,attribute)
if c then
if default and c == inheritance then