summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/lpdf-xmp.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-12-07 20:44:55 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2018-12-07 20:44:55 +0100
commit5bb786877a5617fb8fbe3fd0e7b54fbcea3ce002 (patch)
treeeb0b52ddfc64af42d0fe6ae78a85e4673c4a1ab0 /tex/context/base/mkiv/lpdf-xmp.lua
parent6953b7c4b4c40fab660992622a6fd140fa310b34 (diff)
downloadcontext-5bb786877a5617fb8fbe3fd0e7b54fbcea3ce002.tar.gz
2018-12-07 19:45:00
Diffstat (limited to 'tex/context/base/mkiv/lpdf-xmp.lua')
-rw-r--r--tex/context/base/mkiv/lpdf-xmp.lua20
1 files changed, 11 insertions, 9 deletions
diff --git a/tex/context/base/mkiv/lpdf-xmp.lua b/tex/context/base/mkiv/lpdf-xmp.lua
index b9595062f..ac7872fc2 100644
--- a/tex/context/base/mkiv/lpdf-xmp.lua
+++ b/tex/context/base/mkiv/lpdf-xmp.lua
@@ -144,15 +144,17 @@ local function update()
settrailerid(false)
return
end
- end
- dates = toboolean(dates)
- included.date = dates
- if dates then
- included.id = true
- else
- report_info("no date/time but fake id information will be added")
- settrailerid(true)
- included.id = "fake"
+ if t == "string" then
+ dates = toboolean(dates)
+ included.date = dates
+ if dates ~= false then
+ included.id = true
+ else
+ report_info("no date/time but fake id information will be added")
+ settrailerid(true)
+ included.id = "fake"
+ end
+ end
end
end