diff --git a/config/nimdoc.cfg b/config/nimdoc.cfg
index 96e91283a4..960c58c9e2 100644
--- a/config/nimdoc.cfg
+++ b/config/nimdoc.cfg
@@ -38,7 +38,8 @@ doc.section.toc = """
# * $seeSrc: generated HTML from doc.item.seesrc (if some switches are used).
doc.item = """
-
$header
+
+$header
$desc
$seeSrc
@@ -48,7 +49,7 @@ $seeSrc
# Chunk of HTML emitted for each entry in the HTML table of contents.
# See doc.item for available substitution variables.
doc.item.toc = """
- $name$attype
"""
diff --git a/nimdoc/testproject/expected/subdir/subdir_b/utils.html b/nimdoc/testproject/expected/subdir/subdir_b/utils.html
index 285d09d5c5..d81be8f48c 100644
--- a/nimdoc/testproject/expected/subdir/subdir_b/utils.html
+++ b/nimdoc/testproject/expected/subdir/subdir_b/utils.html
@@ -1250,7 +1250,7 @@ function main() {
Procs
@@ -1265,7 +1265,8 @@ function main() {
-SomeType = enum
+
+
SomeType = enum
enumValueA, enumValueB, enumValueC
-
@@ -1276,7 +1277,8 @@ function main() {
-proc someType(): SomeType {...}{.raises: [], tags: [].}
+
+proc someType(): SomeType {...}{.raises: [], tags: [].}
-
constructor.
diff --git a/nimdoc/testproject/expected/testproject.html b/nimdoc/testproject/expected/testproject.html
index 064a700114..f1c5676271 100644
--- a/nimdoc/testproject/expected/testproject.html
+++ b/nimdoc/testproject/expected/testproject.html
@@ -1255,7 +1255,7 @@ function main() {
-
Procs
@@ -1263,7 +1263,7 @@ function main() {
-
Macros
@@ -1271,7 +1271,7 @@ function main() {
-
Templates
@@ -1297,7 +1297,8 @@ function main() {
-aVariable: array[1, int]
+
+aVariable: array[1, int]
-
@@ -1307,7 +1308,8 @@ function main() {
-proc bar[T](a, b: T): T
+
+proc bar[T](a, b: T): T
-
@@ -1317,7 +1319,8 @@ function main() {
-macro bar(): untyped
+
+macro bar(): untyped
-
@@ -1327,7 +1330,8 @@ function main() {