From 5604cd9c30e8be61b0b32c8e5bd8f286487a32dd Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 18 Sep 2014 22:11:00 -0400 Subject: [PATCH] Try to fix bug --- hv/hv.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hv/hv.go b/hv/hv.go index c65f53a..0a6d68f 100644 --- a/hv/hv.go +++ b/hv/hv.go @@ -1,4 +1,4 @@ -// Copyright 2013-2014 Unknown +// Copyright 2013 Unknwon // // Licensed under the Apache License, Version 2.0 (the "License"): you may // not use this file except in compliance with the License. You may obtain @@ -148,7 +148,7 @@ func (r *Render) Render(name string, data []byte) []byte { } // FIXME: index out of range - if len(code) <= pos { + if len(code) == pos+1 { break CutWords } if !isString {