diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-11-02 21:53:08 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2021-11-02 21:53:08 +0100 |
commit | 45bcd7d3f1c78d08d20db3b6929421c896fa869a (patch) | |
tree | a4d2648d7833408ccc718b8d550d9b1d62d48719 | |
parent | dbc654e4a7877dacf02c91ee9dcd567194682efa (diff) | |
download | pandoc-45bcd7d3f1c78d08d20db3b6929421c896fa869a.tar.gz |
Lua: fix typo in SoftBreak constructor
-rw-r--r-- | src/Text/Pandoc/Lua/Module/Pandoc.hs | 2 | ||||
-rw-r--r-- | test/lua/module/pandoc.lua | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Lua/Module/Pandoc.hs b/src/Text/Pandoc/Lua/Module/Pandoc.hs index f09159b4e..33432b4d8 100644 --- a/src/Text/Pandoc/Lua/Module/Pandoc.hs +++ b/src/Text/Pandoc/Lua/Module/Pandoc.hs @@ -186,7 +186,7 @@ inlineConstructors = <#> parameter peekText "text" "string" "string content" =#> functionResult pushInline "Inline" "raw inline element" , mkInlinesConstr "SmallCaps" SmallCaps - , defun "SoftSpace" + , defun "SoftBreak" ### return SoftBreak =#> functionResult pushInline "Inline" "soft break" , defun "Space" diff --git a/test/lua/module/pandoc.lua b/test/lua/module/pandoc.lua index fac95d27f..4da663f07 100644 --- a/test/lua/module/pandoc.lua +++ b/test/lua/module/pandoc.lua @@ -322,6 +322,12 @@ return { assert.are_equal(elem, pandoc.SmallCaps{'word'}) end) }, + group 'SoftBreak' { + test('can be constructed', function () + local sb = pandoc.SoftBreak() + assert.are_equal(sb.t, 'SoftBreak') + end) + }, group 'Span' { test('has property `attr`', function () local elem = pandoc.Span('one', {'', {'number'}}) |