From 48105ce953be28a0858abdb28cff5c2fe443e376 Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 16 May 2009 18:09:14 -0400 Subject: Loading an FCKeditor --- src/cjr_print.sml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/cjr_print.sml b/src/cjr_print.sml index 7f5dccde..683c2ddf 100644 --- a/src/cjr_print.sml +++ b/src/cjr_print.sml @@ -2841,14 +2841,22 @@ fun p_file env (ds, ps) = string "uw_write(ctx, begin_xhtml);", newline, string "uw_set_script_header(ctx, \"", - string (case side of + let + val scripts = + case side of ServerOnly => "" | _ => "\\n"), - p_list (fn x => string ("")) - (Settings.getScripts ()), + ^ "\\\">\\n" + + val scripts = foldl (fn (x, scripts) => + scripts + ^ "\\n") + scripts (Settings.getScripts ()) + in + string scripts + end, string "\");", newline, string "uw_set_needs_push(ctx, ", -- cgit v1.2.3