From 5ca3046da6c48723a8b67876ba4d3aa5cb59fc77 Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Fri, 12 May 2017 03:52:45 -0400 Subject: [PATCH] Fix rendering of issue checkboxes (#1709) --- modules/markdown/markdown.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/markdown/markdown.go b/modules/markdown/markdown.go index 8f68c5516..1f890cc82 100644 --- a/modules/markdown/markdown.go +++ b/modules/markdown/markdown.go @@ -144,12 +144,12 @@ func (r *Renderer) ListItem(out *bytes.Buffer, text []byte, flags int) { } switch { case bytes.HasPrefix(text, []byte(prefix+"[ ] ")): - text = append([]byte(`
`), text[3+len(prefix):]...) + text = append([]byte(``), text[3+len(prefix):]...) if prefix != "" { text = bytes.Replace(text, []byte(prefix), []byte{}, 1) } case bytes.HasPrefix(text, []byte(prefix+"[x] ")): - text = append([]byte(`
`), text[3+len(prefix):]...) + text = append([]byte(``), text[3+len(prefix):]...) if prefix != "" { text = bytes.Replace(text, []byte(prefix), []byte{}, 1) }