From 9451d83058fa0b237514e618ebe6140a69fe13db Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 30 Sep 2017 23:00:14 -0700 Subject: Lua: make fetch return mime type first and then content. --- src/Text/Pandoc/Lua/PandocModule.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/Lua/PandocModule.hs b/src/Text/Pandoc/Lua/PandocModule.hs index f27d6f45e..a54e54c09 100644 --- a/src/Text/Pandoc/Lua/PandocModule.hs +++ b/src/Text/Pandoc/Lua/PandocModule.hs @@ -163,8 +163,8 @@ fetch commonState mbRef src = do putCommonState commonState setMediaBag mediaBag fetchItem src - Lua.push bs Lua.push $ fromMaybe "" mimeType + Lua.push bs return 2 -- returns 2 values: contents, mimetype -- -- cgit v1.2.3