Browse Source

Fixed a bug in which the filename of an exported HTML file was just "export" instead of being based on the notebook name.

Dan Helfman 9 years ago
parent
commit
bbd0328858
2 changed files with 3 additions and 2 deletions
  1. 2
    1
      NEWS
  2. 1
    1
      plugins/export_html/Html_file.py

+ 2
- 1
NEWS View File

@@ -1,5 +1,6 @@
1 1
 1.6.9: ?
2
- *
2
+ * Fixed a bug in which the filename of an exported HTML file was just
3
+   "export" instead of being based on the notebook name.
3 4
 
4 5
 1.6.8: March 3, 2009
5 6
  * You can now print your entire notebook. Just click the "print" link on the

+ 1
- 1
plugins/export_html/Html_file.py View File

@@ -18,7 +18,7 @@ class Html_file( Html ):
18 18
       contents = self.IMAGE_PATTERN.sub( '', contents )
19 19
       relinked_notes[ note.object_id ] = contents
20 20
 
21
-    response_headers[ u"Content-Disposition" ] = u"attachment; filename=%s.html" % notebook and notebook.friendly_id
21
+    response_headers[ u"Content-Disposition" ] = u"attachment; filename=%s.html" % ( notebook and notebook.friendly_id )
22 22
 
23 23
     Html.__init__(
24 24
       self,

Loading…
Cancel
Save