diff options
author | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2010-09-16 14:56:47 +0200 |
---|---|---|
committer | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2010-09-16 14:56:47 +0200 |
commit | 853269887cbef331d95e5cb410ac4f6110a3cee4 (patch) | |
tree | 2d81bb97f3e0c752029faf9958f80dc9bf530cc9 | |
parent | f000dddf30b29568512dcdaa969c2ece42b88413 (diff) | |
download | context-rst-853269887cbef331d95e5cb410ac4f6110a3cee4.tar.gz |
line blocks have now a setup
-rw-r--r-- | rst_context.lua | 16 | ||||
-rw-r--r-- | rst_parser.lua | 2 |
2 files changed, 17 insertions, 1 deletions
diff --git a/rst_context.lua b/rst_context.lua index d8b8516..0abcdc6 100644 --- a/rst_context.lua +++ b/rst_context.lua @@ -768,6 +768,7 @@ function rst_context.literal_block (str) end function rst_context.line_block (str) + rst_context.addsetups("lines") return [[ \\startlines @@ -1207,4 +1208,19 @@ function optional_setups.deflist () ]] end +function optional_setups.lines () + return [[ + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Lines environment (line blocks) % +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\setuplines[% + space=on,% + before={\startlinecorrection\blank[small]},% + after={\blank[small]\stoplinecorrection},% +] +]] +end + return rst_context diff --git a/rst_parser.lua b/rst_parser.lua index 6f5acbf..432f11a 100644 --- a/rst_parser.lua +++ b/rst_parser.lua @@ -101,7 +101,7 @@ local parser = P{ block = V"explicit_markup" + V"target_block" + Cs(V"list") / rst.escape - + V"line_block" + + Cs(V"line_block") / rst.escape + Cs(V"table_block") / rst.escape + Cs(V"section") / rst.escape + Cs(V"transition") --/ rst.escape |