From 62f0018e2f0ff83c09bec0ca5cd167744d546bb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vytautas=20=C5=A0altenis?= Date: Wed, 6 May 2015 15:55:04 +0300 Subject: [PATCH] Replace snake_case with mixedCase --- inline.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/inline.go b/inline.go index 15137a1..3f39b52 100644 --- a/inline.go +++ b/inline.go @@ -216,10 +216,10 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int { data = data[offset:] var ( - i = 1 - noteId int - title, link, alt_content []byte - textHasNl = false + i = 1 + noteId int + title, link, altContent []byte + textHasNl = false ) if t == linkDeferredFootnote { @@ -355,7 +355,7 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int { // reference style link case i < len(data)-1 && data[i] == '[' && data[i+1] != '^': var id []byte - alt_content_considered := false + altContentConsidered := false // look for the id i++ @@ -385,7 +385,7 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int { id = b.Bytes() } else { id = data[1:txtE] - alt_content_considered = true + altContentConsidered = true } } else { id = data[linkB:linkE] @@ -401,8 +401,8 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int { // keep link and title from reference link = lr.link title = lr.title - if alt_content_considered { - alt_content = lr.text + if altContentConsidered { + altContent = lr.text } i++ @@ -513,8 +513,8 @@ func link(p *parser, out *bytes.Buffer, data []byte, offset int) int { // call the relevant rendering function switch t { case linkNormal: - if len(alt_content) > 0 { - p.r.Link(out, uLink, title, alt_content) + if len(altContent) > 0 { + p.r.Link(out, uLink, title, altContent) } else { p.r.Link(out, uLink, title, content.Bytes()) }