Fixed a bug in which the filename of an exported HTML file was just "export" instead of being based on the notebook name.
This commit is contained in:
parent
a40bda5d3d
commit
bbd0328858
3
NEWS
3
NEWS
|
@ -1,5 +1,6 @@
|
||||||
1.6.9: ?
|
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
|
1.6.8: March 3, 2009
|
||||||
* You can now print your entire notebook. Just click the "print" link on the
|
* You can now print your entire notebook. Just click the "print" link on the
|
||||||
|
|
|
@ -18,7 +18,7 @@ class Html_file( Html ):
|
||||||
contents = self.IMAGE_PATTERN.sub( '', contents )
|
contents = self.IMAGE_PATTERN.sub( '', contents )
|
||||||
relinked_notes[ note.object_id ] = 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__(
|
Html.__init__(
|
||||||
self,
|
self,
|
||||||
|
|
Reference in New Issue