From 4b850e809858ee051a99b751e637657f2ee9f26f Mon Sep 17 00:00:00 2001 From: Russ Ross Date: Wed, 1 Jun 2011 18:52:40 -0600 Subject: [PATCH] tab expansion bug --- markdown.go | 1 + 1 file changed, 1 insertion(+) diff --git a/markdown.go b/markdown.go index 8cd9872..3127801 100644 --- a/markdown.go +++ b/markdown.go @@ -464,6 +464,7 @@ func expandTabs(out *bytes.Buffer, line []byte) { // the slow case: we need to count runes to figure out how // many spaces to insert for each tab column := 0 + i = 0 for i < len(line) { start := i for i < len(line) && line[i] != '\t' {