diff --git a/modules/markup/html.go b/modules/markup/html.go index 1c2ae6918d..c2339838e5 100644 --- a/modules/markup/html.go +++ b/modules/markup/html.go @@ -254,26 +254,35 @@ func RenderTocHeadingItems(ctx *RenderContext, nodeDetailsAttrs map[string]strin currentLevel := baseLevel indent := []byte{' ', ' '} _, _ = htmlutil.HTMLPrint(out, "\n") + _, _ = htmlutil.HTMLPrint(out, "\n") currentLevel-- } _, _ = htmlutil.HTMLPrint(out, "\n\n") diff --git a/modules/markup/html_toc_test.go b/modules/markup/html_toc_test.go index e93cfc9346..ab363878a4 100644 --- a/modules/markup/html_toc_test.go +++ b/modules/markup/html_toc_test.go @@ -38,16 +38,16 @@ include_toc: true result = re.ReplaceAllString(result, "\n") expected := `
toc