Skip to content

Commit

Permalink
Use ropes in generic writer.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Oct 26, 2012
1 parent f26d5aa commit bdf6512
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lunamark/writer/generic.lua
Expand Up @@ -159,7 +159,7 @@ function M.new(options)
-- `tight` is true, returns a "tight" list (with
-- minimal space between items).
function W.bulletlist(items,tight)
return table.concat(items,W.interblocksep)
return util.intersperse(items,W.interblocksep)
end

--- An ordered list with contents `items` (an array). If
Expand All @@ -168,7 +168,7 @@ function M.new(options)
-- number `startnum` is present, use it as the
-- number of the first list item.
function W.orderedlist(items,tight,startnum)
return table.concat(items,W.interblocksep)
return util.intersperse(items,W.interblocksep)
end

--- Inline HTML.
Expand Down Expand Up @@ -222,9 +222,9 @@ function M.new(options)
local buffer = {}
for _,item in ipairs(items) do
buffer[#buffer + 1] = item.t
buffer[#buffer + 1] = table.concat(item.definitions, W.interblocksep)
buffer[#buffer + 1] = util.intersperse(item.definitions, W.interblocksep)
end
return table.concat(buffer,W.interblocksep)
return util.intersperse(buffer,W.interblocksep)
end

--- A cosmo template to be used in producing a standalone document.
Expand Down

0 comments on commit bdf6512

Please sign in to comment.