mirror of
https://github.com/danog/blackfriday.git
synced 2024-11-27 04:24:41 +01:00
Minor style fix: declare ref first in a loop
This commit is contained in:
parent
c29209fcda
commit
a58274acef
@ -454,8 +454,8 @@ func secondPass(p *parser, input []byte) []byte {
|
|||||||
p.r.Footnotes(&output, func() bool {
|
p.r.Footnotes(&output, func() bool {
|
||||||
flags := LIST_ITEM_BEGINNING_OF_LIST
|
flags := LIST_ITEM_BEGINNING_OF_LIST
|
||||||
for i := 0; i < len(p.notes); i += 1 {
|
for i := 0; i < len(p.notes); i += 1 {
|
||||||
var buf bytes.Buffer
|
|
||||||
ref := p.notes[i]
|
ref := p.notes[i]
|
||||||
|
var buf bytes.Buffer
|
||||||
if ref.hasBlock {
|
if ref.hasBlock {
|
||||||
flags |= LIST_ITEM_CONTAINS_BLOCK
|
flags |= LIST_ITEM_CONTAINS_BLOCK
|
||||||
p.block(&buf, ref.title)
|
p.block(&buf, ref.title)
|
||||||
|
Loading…
Reference in New Issue
Block a user