From 31151b875092dbff1746194f041adce2ab9743d2 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 4 Sep 2010 17:39:33 +0200 Subject: line blocks. text_elements instead of rest_of_line --- rst_context.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'rst_context.lua') 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 -- cgit v1.2.3