From 9655d01967d53e03d8174df49c45622726b91107 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Fri, 14 Nov 2014 10:48:47 -0800 Subject: [PATCH] make render-scribble-source return a string --- render.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render.rkt b/render.rkt index 90bb952..5ea0aa4 100644 --- a/render.rkt +++ b/render.rkt @@ -144,7 +144,7 @@ (time (parameterize ([current-directory (->complete-path source-dir)]) ;; BTW this next action has side effects: scribble will copy in its core files if they don't exist. ((dynamic-require 'scribble/render 'render) (list (dynamic-require source-path world:main-pollen-export)) (list source-path)))) - (define result (file->bytes (->output-path source-path))) + (define result (file->string (->output-path source-path))) (delete-file (->output-path source-path)) ; because render promises the data, not the side effect result)