Minor style fix: declare ref first in a loop
Vytautas Ĺ altenis vytas@rtfb.lt
Wed, 04 Nov 2015 21:07:39 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
markdown.go
→
markdown.go
@@ -454,8 +454,8 @@ if p.flags&EXTENSION_FOOTNOTES != 0 && len(p.notes) > 0 {
p.r.Footnotes(&output, func() bool { flags := LIST_ITEM_BEGINNING_OF_LIST for i := 0; i < len(p.notes); i += 1 { - var buf bytes.Buffer ref := p.notes[i] + var buf bytes.Buffer if ref.hasBlock { flags |= LIST_ITEM_CONTAINS_BLOCK p.block(&buf, ref.title)