diff src/cjr_print.sml @ 1407:7d963b8019e6

Some fixes for tasks and onError handlers
author Adam Chlipala <adam@chlipala.net>
date Thu, 20 Jan 2011 15:11:45 -0500
parents 59c8a19bfb22
children 4a6f84092399
line wrap: on
line diff
--- a/src/cjr_print.sml	Thu Jan 20 12:50:42 2011 -0500
+++ b/src/cjr_print.sml	Thu Jan 20 15:11:45 2011 -0500
@@ -2991,6 +2991,20 @@
              newline,
              newline,
 
+             string "static const char begin_xhtml[] = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\" ?>\\n<!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Transitional//EN\\\" \\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\\">\\n<html xmlns=\\\"http://www.w3.org/1999/xhtml\\\" xml:lang=\\\"en\\\" lang=\\\"en\\\">\";",
+             newline,
+             newline,
+
+             p_list_sep newline (fn x => x) pds,
+             newline,
+             newline,
+             string "static int uw_input_num(const char *name) {",
+             newline,
+             makeSwitch (fnums, 0),
+             string "}",
+             newline,
+             newline,
+
              box (ListUtil.mapi (fn (i, (_, x1, x2, e)) =>
                                     box [string "static void uw_periodic",
                                          string (Int.toString i),
@@ -3021,20 +3035,6 @@
              newline,
              newline,
 
-             string "static const char begin_xhtml[] = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\" ?>\\n<!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Transitional//EN\\\" \\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\\">\\n<html xmlns=\\\"http://www.w3.org/1999/xhtml\\\" xml:lang=\\\"en\\\" lang=\\\"en\\\">\";",
-             newline,
-             newline,
-
-             p_list_sep newline (fn x => x) pds,
-             newline,
-             newline,
-             string "static int uw_input_num(const char *name) {",
-             newline,
-             makeSwitch (fnums, 0),
-             string "}",
-             newline,
-             newline,
-
              makeChecker ("uw_check_url", Settings.getUrlRules ()),
              newline,