summaryrefslogtreecommitdiff
path: root/tex/context/base/node-tra.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2011-02-08 10:06:00 +0100
committerHans Hagen <pragma@wxs.nl>2011-02-08 10:06:00 +0100
commit13fe57ae547e79f911229fe4586591f7a8439c69 (patch)
treee30b07f26511067cd49a3cc0333720a75f157076 /tex/context/base/node-tra.lua
parent6f1048d50cb4376e5bf17c8c9221f61e4af9f778 (diff)
downloadcontext-13fe57ae547e79f911229fe4586591f7a8439c69.tar.gz
beta 2011.02.08 10:06
Diffstat (limited to 'tex/context/base/node-tra.lua')
-rw-r--r--tex/context/base/node-tra.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/tex/context/base/node-tra.lua b/tex/context/base/node-tra.lua
index 22d11fc5b..c464d7736 100644
--- a/tex/context/base/node-tra.lua
+++ b/tex/context/base/node-tra.lua
@@ -17,7 +17,7 @@ local format, match, gmatch, concat, rep = string.format, string.match, string.g
local lpegmatch = lpeg.match
local write_nl = texio.write_nl
-local report_nodes = logs.new("nodes")
+local report_nodes = logs.new("nodes","tracing")
fonts = fonts or { }
nodes = nodes or { }
@@ -361,7 +361,11 @@ function nodes.handlers.checkglyphs(head,message)
t[#t+1] = format("U+%04X:%s",g.char,g.subtype)
end
if #t > 0 then
- logs.report(message or "nodes","%s glyphs: %s",#t,concat(t," "))
+ if message and message ~= "" then
+ report_nodes("%s, %s glyphs: %s",message,#t,concat(t," "))
+ else
+ report_nodes("%s glyphs: %s",#t,concat(t," "))
+ end
end
return false
end
@@ -565,7 +569,7 @@ local function showboxes(n,symbol,depth)
local id = n.id
if id == hlist_code or id == vlist_code then
local s = n.subtype
- logs.simple(rep(symbol,depth) .. what[s] or s)
+ report_nodes(rep(symbol,depth) .. what[s] or s)
showboxes(n.list,symbol,depth+1)
end
end