summaryrefslogtreecommitdiff
path: root/tex/context/base/back-exp.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-05-06 18:00:14 +0300
committerMarius <mariausol@gmail.com>2011-05-06 18:00:14 +0300
commit08808c3c53f125871cf4fd17926e4417072264e6 (patch)
tree26db5188fa5a125398f280a4401dac547a659245 /tex/context/base/back-exp.lua
parent9ab2e8aeda3e1bf1934072144bff60316861890f (diff)
downloadcontext-08808c3c53f125871cf4fd17926e4417072264e6.tar.gz
beta 2011.05.06 16:52
Diffstat (limited to 'tex/context/base/back-exp.lua')
-rw-r--r--tex/context/base/back-exp.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/tex/context/base/back-exp.lua b/tex/context/base/back-exp.lua
index 5ceb360dc..46ddc4f53 100644
--- a/tex/context/base/back-exp.lua
+++ b/tex/context/base/back-exp.lua
@@ -1066,7 +1066,7 @@ local function stopexport(v)
if handle then
report_export("saving xml data in '%s",xmlfile)
handle:write(format(xmlpreamble,tex.jobname,os.date(),environment.version,version))
- if cssfile then
+ if type(cssfile) == "string" then
local cssfiles = settings_to_array(cssfile)
for i=1,#cssfiles do
local cssfile = cssfiles[i]
@@ -1099,7 +1099,8 @@ local function stopexport(v)
io.savedata(cssfile,concat(templates,"\n\n"))
-- xhtml references
if xhtmlfile then
- if type(v) ~= "string" or xhtmlfile == variables.yes or xhtmlfile == "" or xhtmlfile == xmlfile then
+ -- messy
+ if type(v) ~= "string" or xhtmlfile == true or xhtmlfile == variables.yes or xhtmlfile == "" or xhtmlfile == xmlfile then
xhtmlfile = file.replacesuffix(xmlfile,"xhtml")
else
xhtmlfile = file.addsuffix(xhtmlfile,"xhtml")