summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-ini.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-03-13 01:20:16 +0200
committerMarius <mariausol@gmail.com>2013-03-13 01:20:16 +0200
commit4d6709d2eec4237345164c15be765be0669541d0 (patch)
tree110053b7da1c5638de03d45cf2898ebdd49188e5 /tex/context/base/strc-ini.lua
parent1253a5723d8188696f9ab801b13ec84f16c6bf6f (diff)
downloadcontext-4d6709d2eec4237345164c15be765be0669541d0.tar.gz
beta 2013.03.13 00:08
Diffstat (limited to 'tex/context/base/strc-ini.lua')
-rw-r--r--tex/context/base/strc-ini.lua28
1 files changed, 14 insertions, 14 deletions
diff --git a/tex/context/base/strc-ini.lua b/tex/context/base/strc-ini.lua
index 790899a21..2e30d9310 100644
--- a/tex/context/base/strc-ini.lua
+++ b/tex/context/base/strc-ini.lua
@@ -202,36 +202,36 @@ function helpers.title(title,metadata) -- coding is xml is rather old and not th
-- title can contain raw xml
local tag = tags[metadata.kind] or tags.generic
local xmldata = format("<?xml version='1.0'?><%s>%s</%s>",tag,title,tag)
-if not experiment then
- buffers.assign(tag,xmldata)
-end
+ if not experiment then
+ buffers.assign(tag,xmldata)
+ end
if trace_processors then
report_processors("putting xml data in buffer: %s",xmldata)
- report_processors("processing buffer with setup '%s' and tag '%s'",xmlsetup or "",tag)
+ report_processors("processing buffer with setup %a and tag %a",xmlsetup,tag)
end
-if experiment then
- -- the question is: will this be forgotten ... better store in a via file
- local xmltable = lxml.convert("temp",xmldata or "")
- lxml.store("temp",xmltable)
- context.xmlsetup("temp",xmlsetup or "")
-else
+ if experiment then
+ -- the question is: will this be forgotten ... better store in a via file
+ local xmltable = lxml.convert("temp",xmldata or "")
+ lxml.store("temp",xmltable)
+ context.xmlsetup("temp",xmlsetup or "")
+ else
context.xmlprocessbuffer("dummy",tag,xmlsetup or "")
-end
+ end
elseif xmlsetup then -- title is reference to node (so \xmlraw should have been used)
if trace_processors then
- report_processors("feeding xmlsetup '%s' using node '%s'",xmlsetup,title)
+ report_processors("feeding xmlsetup %a using node %a",xmlsetup,title)
end
context.xmlsetup(title,metadata.xmlsetup)
else
local catcodes = metadata.catcodes
if catcodes == notcatcodes or catcodes == xmlcatcodes then
if trace_processors then
- report_processors("cct: %s (overloads %s), txt: %s",ctxcatcodes,catcodes,title)
+ report_processors("catcodetable %a, overloads %a, text %a",ctxcatcodes,catcodes,title)
end
context(title) -- nasty
else
if trace_processors then
- report_processors("cct: %s, txt: %s",catcodes,title)
+ report_processors("catcodetable %a, text %a",catcodes,title)
end
--
-- context.sprint(catcodes,title)