summaryrefslogtreecommitdiff
path: root/mod/tex
diff options
context:
space:
mode:
authorPhilipp Gesang <gesang@stud.uni-heidelberg.de>2013-03-12 21:21:02 +0100
committerPhilipp Gesang <gesang@stud.uni-heidelberg.de>2013-03-12 21:21:02 +0100
commit7a837554c4812a3bb605420fc711160faebd160c (patch)
tree0fd60403c5fb0acc2452b0e8401773e2ad49a198 /mod/tex
parentc3e138a3d2f616e402f39b47078c604bece1078e (diff)
downloadcontext-rst-7a837554c4812a3bb605420fc711160faebd160c.tar.gz
robustify container directives
Diffstat (limited to 'mod/tex')
-rw-r--r--mod/tex/context/third/rst/rst_directives.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/tex/context/third/rst/rst_directives.lua b/mod/tex/context/third/rst/rst_directives.lua
index 085d167..f18e7cf 100644
--- a/mod/tex/context/third/rst/rst_directives.lua
+++ b/mod/tex/context/third/rst/rst_directives.lua
@@ -305,7 +305,7 @@ rst_directives.container = function(data)
local inline_parser = rst_context.inline_parser
local name, content = stringstrip(data[1]), ""
if name == "" then
- name = "\\framed"
+ name = "framed"
end
local tmp = { }
for i=2, #data do
@@ -318,11 +318,11 @@ rst_directives.container = function(data)
return stringformat([[
\ifcsname %s\endcsname%%
\csname %s\endcsname%%
+ {%s}%%
\else
- \relax
+ {%s}%%
\fi
-{%s}%%
-]], name, name, content)
+]], name, name, content, content)
end
-- vim:ft=lua:sw=4:ts=4:expandtab