summaryrefslogtreecommitdiff
path: root/rst_context.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-16 19:37:13 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-16 19:37:13 +0200
commit95482834c8a7a99f677fc6ffafd72399d157f58d (patch)
treea52dc1b721c47440112af3d88d36b09567b8ac1f /rst_context.lua
parent65bee7f493520e0dc75084f2dc68c52e6a5521d1 (diff)
downloadcontext-rst-95482834c8a7a99f677fc6ffafd72399d157f58d.tar.gz
fixed spacing before colons in paragraph-contained literal blocks
Diffstat (limited to 'rst_context.lua')
-rw-r--r--rst_context.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/rst_context.lua b/rst_context.lua
index a46e0a2..3107a29 100644
--- a/rst_context.lua
+++ b/rst_context.lua
@@ -740,6 +740,11 @@ function rst_context.option_item (tab)
]], tab[1], tab[2])
end
+function rst_context.test(str)
+ print("This:>>"..str.."<<")
+ return ":"
+end
+
function rst_context.literal_block (str, included)
local indent = P" "^1
local stripme = indent:match(str) or 0
@@ -756,8 +761,6 @@ function rst_context.literal_block (str, included)
}
str = strip:match(str)
- --strip:print() -- grammar consists of 45 rules only; wheras a plain
- -- pattern has 60+
str = [[
\starttyping[lines=hyphenated]