src/Pure/Thy/html.ML
changeset 33983 cfbf1ff6170d
parent 33222 89ced80833ac
child 33985 1d33e85a3fa9
--- a/src/Pure/Thy/html.ML	Fri Dec 04 17:19:59 2009 +0100
+++ b/src/Pure/Thy/html.ML	Fri Dec 04 20:03:37 2009 +0100
@@ -49,7 +49,8 @@
 
 local
   val html_syms = Symtab.make
-   [("\\<spacespace>", (2, "&nbsp;&nbsp;")),
+   [("'", (1, "&#39;")),
+    ("\\<spacespace>", (2, "&nbsp;&nbsp;")),
     ("\\<exclamdown>", (1, "&iexcl;")),
     ("\\<cent>", (1, "&cent;")),
     ("\\<pounds>", (1, "&pound;")),
@@ -197,7 +198,8 @@
   fun output_sym s =
     if Symbol.is_raw s then (1, Symbol.decode_raw s)
     else
-      (case Symtab.lookup html_syms s of SOME x => x
+      (case Symtab.lookup html_syms s of
+        SOME x => x
       | NONE => (size s, XML.text s));
 
   fun output_sub s = apsnd (enclose "<sub>" "</sub>") (output_sym s);