Skip to content

Commit cadbfb5

Browse files
Fix paper.lua
1 parent ee850ea commit cadbfb5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pandoc/paper.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ function yamldata(data)
2020
newdata.title = pandoc.utils.stringify(data["title"])
2121
newdata.url = pandoc.write(pandoc.Pandoc{data["url"]}, 'html')
2222
newdata.authors = data["authors"] or {}
23-
newdata.venue = pandoc.utils.stringify(data["venue"])
24-
newdata.year = pandoc.utils.stringify(data["year"])
23+
if data.venue then
24+
newdata.venue = pandoc.utils.stringify(data["venue"])
25+
end
26+
if data.year then
27+
newdata.year = pandoc.utils.stringify(data["year"])
28+
end
2529
local files = data["files"] or pandoc.List()
2630

2731
newdata.files = files:map(function(data)

0 commit comments

Comments
 (0)