summaryrefslogtreecommitdiff
path: root/rst_context.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-16 19:57:49 +0200
committerPhilipp Gesang <pgesang@ix.urz.uni-heidelberg.de>2010-09-16 19:57:49 +0200
commitc45e21547a2a471ab2147494f505001269374480 (patch)
tree1ed2d5232c4391a63f2248ca05288b2470739598 /rst_context.lua
parent95482834c8a7a99f677fc6ffafd72399d157f58d (diff)
downloadcontext-rst-c45e21547a2a471ab2147494f505001269374480.tar.gz
fixed grouped single-line comments
Diffstat (limited to 'rst_context.lua')
-rw-r--r--rst_context.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/rst_context.lua b/rst_context.lua
index 3107a29..00b93f5 100644
--- a/rst_context.lua
+++ b/rst_context.lua
@@ -96,7 +96,7 @@ do
local w = S" \v\t\n" / "_"
local wp = Cs((w + 1)^1)
function rst_context.whitespace_to_underscore(str)
- return wp:match(str)
+ return str and wp:match(str) or ""
end
end
@@ -477,6 +477,7 @@ function rst_context.paragraph (data)
else
str = data
end
+ print(str)
return string.format([[
\\startparagraph