From 5341b4d132919369b053d04dc02005a1099e4cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Mon, 27 Jun 2011 07:37:32 +0000 Subject: [PATCH] 5023: Textual reports are crashing with HTML format without stylesheet set svn: r17837 --- 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 3dfed566e..b58e643de 100644 --- a/src/plugins/docgen/HtmlDoc.py +++ b/src/plugins/docgen/HtmlDoc.py @@ -104,7 +104,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 = ''