summaryrefslogtreecommitdiff
path: root/tex/context/base/node-fin.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2010-07-15 15:01:00 +0200
committerHans Hagen <pragma@wxs.nl>2010-07-15 15:01:00 +0200
commit84903d24d6d930438bb3cc4322c4b14271b713aa (patch)
tree7f5fca13da2c9e1c81e61fbcac67f61d55f13800 /tex/context/base/node-fin.lua
parentcb0c6e65703831a34d0ba909f703994a0825beac (diff)
downloadcontext-84903d24d6d930438bb3cc4322c4b14271b713aa.tar.gz
beta 2010.07.15 15:01
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