fix recording of exprs.dat

svn: r13503
This commit is contained in:
Matthew Flatt 2009-02-09 14:02:07 +00:00
parent a8c8f9e8a1
commit 96509ba06f

View File

@ -128,8 +128,10 @@
(((mr-eval 'make-pict-drawer) v) dc 0 0)
(send bm save-file fn 'png)
(make-element #f (list (make-element (make-image-file
;; For HTML output, .pdf is automatically changed to .png:
(path-replace-suffix fn #".pdf")
;; For HTML output, .pdf is automatically changed to .png.
;; Be sure to use a string rather than a path, because
;; it gets recorded in "exprs.dat".
(path->string (path-replace-suffix fn #".pdf"))
1.0)
(list "[image]"))))))]
[(pair? v) (cons (fixup-picts (car v))