summaryrefslogtreecommitdiff
path: root/macros/generic/markdown/libraries/markdown-tinyyaml.lua
diff options
context:
space:
mode:
Diffstat (limited to 'macros/generic/markdown/libraries/markdown-tinyyaml.lua')
-rw-r--r--macros/generic/markdown/libraries/markdown-tinyyaml.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/macros/generic/markdown/libraries/markdown-tinyyaml.lua b/macros/generic/markdown/libraries/markdown-tinyyaml.lua
index 074ad79446..36cef293ed 100644
--- a/macros/generic/markdown/libraries/markdown-tinyyaml.lua
+++ b/macros/generic/markdown/libraries/markdown-tinyyaml.lua
@@ -633,8 +633,10 @@ function Parser:parseseq(line, lines, indent)
error("did not find expected alphabetic or numeric character")
elseif rest then
-- Array entry with a value
+ local nextline = lines[1]
+ local indent2 = countindent(nextline)
tremove(lines, 1)
- tinsert(seq, self:parsescalar(rest, lines))
+ tinsert(seq, self:parsescalar(rest, lines, indent2))
end
end
return seq