diff options
Diffstat (limited to 'tex/context/base/trac-log.lua')
-rw-r--r-- | tex/context/base/trac-log.lua | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tex/context/base/trac-log.lua b/tex/context/base/trac-log.lua index 1e91fc404..ba8ee8df0 100644 --- a/tex/context/base/trac-log.lua +++ b/tex/context/base/trac-log.lua @@ -132,6 +132,8 @@ if tex and (tex.jobname or tex.formatname) then elseif target == "term" then texio_write_nl("term","") io_write(...) + elseif type(target) == "number" then + texio_write_nl(target,...) -- a tex output channel elseif target ~= "none" then texio_write_nl("log",target,...) texio_write_nl("term","") @@ -150,6 +152,8 @@ if tex and (tex.jobname or tex.formatname) then texio_write("log",...) elseif target == "term" then io_write(...) + elseif type(target) == "number" then + texio_write(target,...) -- a tex output channel elseif target ~= "none" then texio_write("log",target,...) io_write(target,...) @@ -233,7 +237,7 @@ if tex and (tex.jobname or tex.formatname) then end report = function(a,b,c,...) - if c then + if c ~= nil then write_nl(target,report_yes(translations[a],formatters[formats[b]](c,...))) elseif b then write_nl(target,report_yes(translations[a],formats[b])) @@ -245,7 +249,7 @@ if tex and (tex.jobname or tex.formatname) then end direct = function(a,b,c,...) - if c then + if c ~= nil then return direct_yes(translations[a],formatters[formats[b]](c,...)) elseif b then return direct_yes(translations[a],formats[b]) @@ -257,7 +261,7 @@ if tex and (tex.jobname or tex.formatname) then end subreport = function(a,s,b,c,...) - if c then + if c ~= nil then write_nl(target,subreport_yes(translations[a],translations[s],formatters[formats[b]](c,...))) elseif b then write_nl(target,subreport_yes(translations[a],translations[s],formats[b])) @@ -269,7 +273,7 @@ if tex and (tex.jobname or tex.formatname) then end subdirect = function(a,s,b,c,...) - if c then + if c ~= nil then return subdirect_yes(translations[a],translations[s],formatters[formats[b]](c,...)) elseif b then return subdirect_yes(translations[a],translations[s],formats[b]) @@ -281,7 +285,7 @@ if tex and (tex.jobname or tex.formatname) then end status = function(a,b,c,...) - if c then + if c ~= nil then write_nl(target,status_yes(translations[a],formatters[formats[b]](c,...))) elseif b then write_nl(target,status_yes(translations[a],formats[b])) |