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,