From 2b25ffec5bce7fae7bf903efbbc48d14ee0ef0b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Mon, 27 Jun 2011 07:35:54 +0000 Subject: [PATCH] 5023: Textual reports are crashing with HTML format without stylesheet set svn: r17836 --- src/plugins/docgen/HtmlDoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/docgen/HtmlDoc.py b/src/plugins/docgen/HtmlDoc.py index 3135ce0ad..39d7b77b9 100644 --- a/src/plugins/docgen/HtmlDoc.py +++ b/src/plugins/docgen/HtmlDoc.py @@ -103,7 +103,7 @@ class HtmlDoc(BaseDoc, TextDoc): Set the css file to use. The path must be included. Note: DocReportDialog sets this for html doc """ - if os.path.basename(css_filename): + if css_filename and os.path.basename(css_filename): self.css_filename = css_filename else: self.css_filename = ''