diff options
-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'}}) |