From 95482834c8a7a99f677fc6ffafd72399d157f58d Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 16 Sep 2010 19:37:13 +0200 Subject: fixed spacing before colons in paragraph-contained literal blocks --- rst_context.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'rst_context.lua') 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] -- cgit v1.2.3