Drop misleading comment and turn func into method * The comment is no longer true. * Other functions similar to terminateBlockquote() are methods, so make this one a method too.
Vytautas Ĺ altenis vytas@rtfb.lt
Sun, 01 Nov 2015 09:32:30 +0200
2 files changed,
2 insertions(+),
3 deletions(-)
M
block.go
→
block.go
@@ -893,7 +893,7 @@ }
// blockquote ends with at least one blank line // followed by something without a blockquote prefix -func terminateBlockquote(p *parser, data []byte, beg, end int) bool { +func (p *parser) terminateBlockquote(data []byte, beg, end int) bool { if p.isEmpty(data[beg:]) <= 0 { return false }@@ -927,7 +927,7 @@
if pre := p.quotePrefix(data[beg:]); pre > 0 { // skip the prefix beg += pre - } else if terminateBlockquote(p, data, beg, end) { + } else if p.terminateBlockquote(data, beg, end) { break }
M
markdown.go
→
markdown.go
@@ -385,7 +385,6 @@ // - extract references
// - expand tabs // - normalize newlines // - copy everything else -// - add missing newlines before fenced code blocks func firstPass(p *parser, input []byte) []byte { var out bytes.Buffer tabSize := TAB_SIZE_DEFAULT