Lua: fix typo in SoftBreak constructor

This commit is contained in:
Albert Krewinkel 2021-11-02 21:53:08 +01:00
parent dbc654e4a7
commit 45bcd7d3f1
No known key found for this signature in database
GPG key ID: 388DC0B21F631124
2 changed files with 7 additions and 1 deletions

View file

@ -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"

View file

@ -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'}})