diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-12-21 21:50:13 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2021-12-21 21:50:13 +0100 |
commit | 0bdf37315766eb4b785002ffaf38cdb724628e7a (patch) | |
tree | 620eee09f793545547a6ab9e1d0d629439dd81ae /test | |
parent | edb04a78dba3490dc28ef68d5133b0220a0426fa (diff) | |
download | pandoc-0bdf37315766eb4b785002ffaf38cdb724628e7a.tar.gz |
Lua: simplify code of pandoc.utils.stringify
Minor behavior change: plain strings nested in tables are now included
in the result string.
Diffstat (limited to 'test')
-rw-r--r-- | test/lua/module/pandoc-utils.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/lua/module/pandoc-utils.lua b/test/lua/module/pandoc-utils.lua index 73886346c..0475e96ec 100644 --- a/test/lua/module/pandoc-utils.lua +++ b/test/lua/module/pandoc-utils.lua @@ -181,12 +181,11 @@ return { end), test('Meta', function () local meta = pandoc.Meta{ - a = pandoc.Inlines 'a text', - b = 'movie', + a = pandoc.Inlines 'funny and ', + b = 'good movie', c = pandoc.List{pandoc.Inlines{pandoc.Str '!'}} } - -- nested MetaString values are not stringified. - assert.are_equal('a text!', utils.stringify(meta)) + assert.are_equal('funny and good movie!', utils.stringify(meta)) end), }, |