summaryrefslogtreecommitdiff
path: root/rst_context.lua
diff options
context:
space:
mode:
Diffstat (limited to 'rst_context.lua')
-rw-r--r--rst_context.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rst_context.lua b/rst_context.lua
index f595a27..ee943ab 100644
--- a/rst_context.lua
+++ b/rst_context.lua
@@ -393,7 +393,7 @@ end
function rst_context.literal_block (str)
local indent = P" "^1
- local stripme = indent:match(str)
+ local stripme = indent:match(str) or 0
local strip = P{
[1] = "strip",