diff --git a/pagure/docs_server.py b/pagure/docs_server.py
index 3e04e4a..3947a63 100644
--- a/pagure/docs_server.py
+++ b/pagure/docs_server.py
@@ -189,7 +189,7 @@ def view_docs(repo, username=None, namespace=None, filename=None):
# Append a trailing '/' to the folders
if el.filemode == 16384:
name += '/'
- html += '
'.format(el.name, name)
+ html += ''.format(name, name)
html += ''
content = TMPL_HTML.format(content=html)
diff --git a/tests/test_pagure_flask_docs.py b/tests/test_pagure_flask_docs.py
index a954aec..4756a5b 100644
--- a/tests/test_pagure_flask_docs.py
+++ b/tests/test_pagure_flask_docs.py
@@ -181,7 +181,7 @@ class PagureFlaskDocstests(tests.Modeltests):
output = self.app.get('/test/folder1')
self.assertEqual(output.status_code, 200)
self.assertTrue(
- ''
+ ''
in output.data)
output = self.app.get('/test/folder1/foo')