aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-09-30 23:00:14 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2017-09-30 23:00:14 -0700
commit9451d83058fa0b237514e618ebe6140a69fe13db (patch)
tree9fbd3eca8201a052191af814a2464f7637bb2861 /src
parent17583cd99d0ea2cb4a5dcb3eecf2735395ebc3d6 (diff)
downloadpandoc-9451d83058fa0b237514e618ebe6140a69fe13db.tar.gz
Lua: make fetch return mime type first and then content.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Lua/PandocModule.hs2
1 files changed, 1 insertions, 1 deletions
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
--