diff options
author | Marius <mariausol@gmail.com> | 2013-01-10 02:20:15 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2013-01-10 02:20:15 +0200 |
commit | d38d94fe9542984e38b9839eb2383656328b9da9 (patch) | |
tree | 2b14bc228f545d31c35076e1e395113c3abdf393 /scripts/context/stubs/mswin/mtxrun.lua | |
parent | 0f948daabca9dcfb92d6325b9a7a5edba22c5abb (diff) | |
download | context-d38d94fe9542984e38b9839eb2383656328b9da9.tar.gz |
beta 2013.01.10 01:04
Diffstat (limited to 'scripts/context/stubs/mswin/mtxrun.lua')
-rw-r--r-- | scripts/context/stubs/mswin/mtxrun.lua | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua index f704d63e4..731f8ca21 100644 --- a/scripts/context/stubs/mswin/mtxrun.lua +++ b/scripts/context/stubs/mswin/mtxrun.lua @@ -10701,16 +10701,19 @@ function xml.parent(root) end function xml.body(root) - return (root.ri and root.dt[root.ri]) or root -- not ok yet + return root.ri and root.dt[root.ri] or root -- not ok yet end function xml.name(root) if not root then return "" - elseif root.ns == "" then - return root.tg + end + local ns = root.ns + local tg = root.tg + if ns == "" then + return tg else - return root.ns .. ":" .. root.tg + return ns .. ":" .. tg end end @@ -10730,7 +10733,7 @@ end function xml.assign(dt,k,root) if dt and k then - dt[k] = (type(root) == "table" and xml.body(root)) or root + dt[k] = type(root) == "table" and xml.body(root) or root return dt[k] else return xml.body(root) @@ -11952,7 +11955,7 @@ finalizers.tex["function"] = dofunction expressions.text = function(e,n) local rdt = e.__p__.dt - return (rdt and rdt[n]) or "" + return rdt and rdt[n] or "" end expressions.name = function(e,n) -- ns + tg |