From bbd03288588170d293b7113fdf4cf5a7f6dc318c Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Mon, 16 Mar 2009 15:09:33 -0700 Subject: [PATCH] Fixed a bug in which the filename of an exported HTML file was just "export" instead of being based on the notebook name. --- NEWS | 3 ++- plugins/export_html/Html_file.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 7dcadd1..e1c16ac 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ 1.6.9: ? - * + * Fixed a bug in which the filename of an exported HTML file was just + "export" instead of being based on the notebook name. 1.6.8: March 3, 2009 * You can now print your entire notebook. Just click the "print" link on the diff --git a/plugins/export_html/Html_file.py b/plugins/export_html/Html_file.py index 27f3238..552b478 100644 --- a/plugins/export_html/Html_file.py +++ b/plugins/export_html/Html_file.py @@ -18,7 +18,7 @@ class Html_file( Html ): contents = self.IMAGE_PATTERN.sub( '', contents ) relinked_notes[ note.object_id ] = contents - response_headers[ u"Content-Disposition" ] = u"attachment; filename=%s.html" % notebook and notebook.friendly_id + response_headers[ u"Content-Disposition" ] = u"attachment; filename=%s.html" % ( notebook and notebook.friendly_id ) Html.__init__( self,