summaryrefslogtreecommitdiff
path: root/rst_context.lua
diff options
context:
space:
mode:
Diffstat (limited to 'rst_context.lua')
-rw-r--r--rst_context.lua17
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