aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-04-30 11:28:03 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2017-04-30 11:28:03 +0200
commit3362cb89d9034b84ec9504ff55ed0f79aa02f7e4 (patch)
tree6093ec787033d3642460c19391582d2ae26dbdc6 /src/Text
parent01e8df2e53cfd31d9c4c88f9854281392ccaf6ed (diff)
downloadpandoc-3362cb89d9034b84ec9504ff55ed0f79aa02f7e4.tar.gz
Lua module: make Header argument order consistent
Attributes are always passed as the last element, making it possible to omit this argument. Argument order for `Header` was wrong and is fixed.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Lua/StackInstances.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Lua/StackInstances.hs b/src/Text/Pandoc/Lua/StackInstances.hs
index 52151ce64..acf2b7eb1 100644
--- a/src/Text/Pandoc/Lua/StackInstances.hs
+++ b/src/Text/Pandoc/Lua/StackInstances.hs
@@ -173,7 +173,7 @@ pushBlock lua = \case
CodeBlock attr code -> pushViaConstructor lua "CodeBlock" code (LuaAttr attr)
DefinitionList items -> pushViaConstructor lua "DefinitionList" items
Div attr blcks -> pushViaConstructor lua "Div" blcks (LuaAttr attr)
- Header lvl attr inlns -> pushViaConstructor lua "Header" lvl (LuaAttr attr) inlns
+ Header lvl attr inlns -> pushViaConstructor lua "Header" lvl inlns (LuaAttr attr)
HorizontalRule -> pushViaConstructor lua "HorizontalRule"
LineBlock blcks -> pushViaConstructor lua "LineBlock" blcks
OrderedList lstAttr list -> pushViaConstructor lua "OrderedList" list lstAttr