diff options
author | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2010-09-04 17:39:33 +0200 |
---|---|---|
committer | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2010-09-04 17:39:33 +0200 |
commit | 31151b875092dbff1746194f041adce2ab9743d2 (patch) | |
tree | f2aa2dcc747ea621bf4bba66f8e782ce7b93bd99 /rst_context.lua | |
parent | bd98935ced1b94ff40cfa8335fdaabf92645676b (diff) | |
download | context-rst-31151b875092dbff1746194f041adce2ab9743d2.tar.gz |
line blocks. text_elements instead of rest_of_line
Diffstat (limited to 'rst_context.lua')
-rw-r--r-- | rst_context.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/rst_context.lua b/rst_context.lua index ee943ab..8913fb9 100644 --- a/rst_context.lua +++ b/rst_context.lua @@ -418,4 +418,21 @@ function rst_context.literal_block (str) ]] end +function rst_context.line_block (str) + return [[ + +\\startlines +]] .. str .. [[\\stoplines +]] +end + +function rst_context.line_block_line(str) + str = str:gsub("\n", " ") + return str .. "\n" +end + +function rst_context.line_block_empty() + return "\n" +end + return rst_context |