summaryrefslogtreecommitdiff
path: root/tex/context/base/lpdf-wid.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/lpdf-wid.lua')
-rw-r--r--tex/context/base/lpdf-wid.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/lpdf-wid.lua b/tex/context/base/lpdf-wid.lua
index 30bd3572b..11ac82a08 100644
--- a/tex/context/base/lpdf-wid.lua
+++ b/tex/context/base/lpdf-wid.lua
@@ -305,9 +305,9 @@ function nodeinjections.attachfile(specification)
if registered == "" then
registered = filename
end
- if author == "" then
+ if author == "" and title ~= "" then
author = title
- title = ""
+ title = filename or ""
end
if author == "" then
author = filename or "<unknown>"