diff options
Diffstat (limited to 'rst_context.lua')
-rw-r--r-- | rst_context.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rst_context.lua b/rst_context.lua index e89934d..c3ec323 100644 --- a/rst_context.lua +++ b/rst_context.lua @@ -465,7 +465,7 @@ local stripme = S"()." local dontstrip = 1 - stripme local itemstripper = stripme^0 * C(dontstrip^1) * stripme^0 local function parse_itemstring(str) - local setup = [[\\setupitemize[]] + local setup = ",fit][itemalign=flushright," -- string.match is slightly faster than string.find if str:match("^%(") then setup = setup .. [[left=(,]] @@ -476,7 +476,7 @@ local function parse_itemstring(str) if str:match("%.$") then setup = setup .. [[stopper=.]] end - setup = setup .. "]\n" + setup = setup str = itemstripper:match(str) return {setup = setup, str=str} @@ -494,8 +494,8 @@ function rst_context.startitemize(str) listtype = listtype.str end - return setup .. [[ -\\startitemize[]] .. listtype .. [[] + return [[ +\\startitemize[]] .. listtype .. setup .. [[] ]] end |