Lua: fix typo in SoftBreak constructor
This commit is contained in:
parent
dbc654e4a7
commit
45bcd7d3f1
2 changed files with 7 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -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'}})
|
||||
|
|
Loading…
Reference in a new issue