diff --git a/htmlgen/htmlgen.py b/htmlgen/htmlgen.py
index 3b78e5c..4bea1a2 100644
--- a/htmlgen/htmlgen.py
+++ b/htmlgen/htmlgen.py
@@ -14,7 +14,7 @@ class HTMLgen:
nav=""
x=0
for title in self.titles:
- nav=nav+("%s" % (x, title))
+ nav=nav+("%s
" % (x, title))
x=x+1
main=""
x=0