diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2018-01-05 08:15:43 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2018-01-05 08:20:59 +0100 |
commit | 4f564b92030168a5416f8ca07530d189f3a6f277 (patch) | |
tree | 2d0810e76666b8f6a20ab487fd021a17cafa3383 /src/Text | |
parent | 856bc54526fc01b48a2d770406fcb9aaa2fa5da3 (diff) | |
download | pandoc-4f564b92030168a5416f8ca07530d189f3a6f277.tar.gz |
data/pandoc.lua: fix attribute names of Citation
The fields were named like the Haskell fields, not like the documented,
shorter version. The names are changed to match the documentation and
Citations are given a shared metatable to enable simple extensibility.
Fixes: #4222
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Lua/StackInstances.hs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Text/Pandoc/Lua/StackInstances.hs b/src/Text/Pandoc/Lua/StackInstances.hs index 119946b78..c669f2865 100644 --- a/src/Text/Pandoc/Lua/StackInstances.hs +++ b/src/Text/Pandoc/Lua/StackInstances.hs @@ -84,12 +84,12 @@ instance ToLuaStack Citation where instance FromLuaStack Citation where peek idx = do - id' <- getTable idx "citationId" - prefix <- getTable idx "citationPrefix" - suffix <- getTable idx "citationSuffix" - mode <- getTable idx "citationMode" - num <- getTable idx "citationNoteNum" - hash <- getTable idx "citationHash" + id' <- getTable idx "id" + prefix <- getTable idx "prefix" + suffix <- getTable idx "suffix" + mode <- getTable idx "mode" + num <- getTable idx "note_num" + hash <- getTable idx "hash" return $ Citation id' prefix suffix mode num hash instance ToLuaStack Alignment where |