summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-11-25 15:00:16 +0200
committerMarius <mariausol@gmail.com>2011-11-25 15:00:16 +0200
commitcb51203b1c95abfcde154919683561a27a28a7e5 (patch)
treeda2f5ceff219bfc6f46cf4345c3ddb1ecbadbaa7 /scripts
parent3c93a961f9579bc10a8a6cb0d30065d9791048a3 (diff)
downloadcontext-cb51203b1c95abfcde154919683561a27a28a7e5.tar.gz
beta 2011.11.25 13:29
Diffstat (limited to 'scripts')
-rw-r--r--scripts/context/lua/mtxrun.lua4
-rw-r--r--scripts/context/stubs/mswin/mtxrun.lua4
-rw-r--r--scripts/context/stubs/unix/mtxrun4
3 files changed, 6 insertions, 6 deletions
diff --git a/scripts/context/lua/mtxrun.lua b/scripts/context/lua/mtxrun.lua
index 261c00efd..92e438188 100644
--- a/scripts/context/lua/mtxrun.lua
+++ b/scripts/context/lua/mtxrun.lua
@@ -10204,9 +10204,9 @@ end
--
local function text(collected) -- hybrid
- if collected and #collected > 0 then
+ if collected then -- no # test here !
local e = collected[1] or collected
- return (e and xmltotext(e)) or ""
+ return e and xmltotext(e) or ""
else
return ""
end
diff --git a/scripts/context/stubs/mswin/mtxrun.lua b/scripts/context/stubs/mswin/mtxrun.lua
index 261c00efd..92e438188 100644
--- a/scripts/context/stubs/mswin/mtxrun.lua
+++ b/scripts/context/stubs/mswin/mtxrun.lua
@@ -10204,9 +10204,9 @@ end
--
local function text(collected) -- hybrid
- if collected and #collected > 0 then
+ if collected then -- no # test here !
local e = collected[1] or collected
- return (e and xmltotext(e)) or ""
+ return e and xmltotext(e) or ""
else
return ""
end
diff --git a/scripts/context/stubs/unix/mtxrun b/scripts/context/stubs/unix/mtxrun
index 261c00efd..92e438188 100644
--- a/scripts/context/stubs/unix/mtxrun
+++ b/scripts/context/stubs/unix/mtxrun
@@ -10204,9 +10204,9 @@ end
--
local function text(collected) -- hybrid
- if collected and #collected > 0 then
+ if collected then -- no # test here !
local e = collected[1] or collected
- return (e and xmltotext(e)) or ""
+ return e and xmltotext(e) or ""
else
return ""
end