summaryrefslogtreecommitdiff
path: root/rst_context.lua
diff options
context:
space:
mode:
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