From 8346559a1af13a6f9a11e2989849abbc6e97384d Mon Sep 17 00:00:00 2001 From: moshee Date: Wed, 26 Jun 2013 16:09:27 +0000 Subject: [PATCH] Referenced footnotes appear to be functional. Inline still unimplemented. --- block.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block.go b/block.go index 4cbee0c..5f71bc6 100644 --- a/block.go +++ b/block.go @@ -458,8 +458,8 @@ func (p *parser) isEmpty(data []byte) int { } var i int - for i = 0; data[i] != '\n'; i++ { - if data[i] != ' ' || data[i] != '\t' { + for i = 0; i < len(data) && data[i] != '\n'; i++ { + if data[i] != ' ' && data[i] != '\t' { return 0 } }