summaryrefslogtreecommitdiff
path: root/tex/context/modules/mkiv/x-ldx.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/modules/mkiv/x-ldx.lua')
-rw-r--r--tex/context/modules/mkiv/x-ldx.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tex/context/modules/mkiv/x-ldx.lua b/tex/context/modules/mkiv/x-ldx.lua
index e88c4c797..775c9a16d 100644
--- a/tex/context/modules/mkiv/x-ldx.lua
+++ b/tex/context/modules/mkiv/x-ldx.lua
@@ -80,7 +80,7 @@ function ldx.load(filename)
end
local str = sub(data, i, #data)
str = gsub(str, "^%s*(.-)%s*$", "%1")
- if #str > 0 then
+ if str ~= "" then
t[#t+1] = { code = str }
end
return t