diff --git a/src/plugins/docgen/HtmlDoc.py b/src/plugins/docgen/HtmlDoc.py
index 926205a55..bbda0c9bf 100644
--- a/src/plugins/docgen/HtmlDoc.py
+++ b/src/plugins/docgen/HtmlDoc.py
@@ -156,7 +156,7 @@ class HtmlDoc(BaseDoc, TextDoc):
"""
styles = self.get_style_sheet()
- text = ['')
self.style_declaration = '\n'.join(text)
def close(self):