# HG changeset patch # User wenzelm # Date 921152014 -3600 # Node ID ce7ab97a8e1517b7a8b4fc56304e43c80dbe36e1 # Parent 643a1bd31a913c48cd526d9828a4440f9229eeb9 tuned; diff -r 643a1bd31a91 -r ce7ab97a8e15 src/Pure/Thy/html.ML --- a/src/Pure/Thy/html.ML Thu Mar 11 12:32:40 1999 +0100 +++ b/src/Pure/Thy/html.ML Thu Mar 11 12:33:34 1999 +0100 @@ -27,8 +27,8 @@ val theory_entry: Path.T * string -> text val session_entries: (Path.T * string) list -> text val source: (string, 'a) Source.source -> text - val begin_theory: Path.T * string -> string -> string list -> ((Path.T * Path.T) * bool) list - -> text -> text + val begin_theory: Path.T * string -> string -> string list -> + (Path.T option * Path.T * bool) list -> text -> text val end_theory: text val ml_file: Path.T -> string -> text val theorem: string -> thm -> text @@ -82,8 +82,8 @@ (* token translations *) -fun tagit bg en = apfst (enclose bg en) o output_width; -fun color col = tagit ("") ""; +fun color col = + apfst (enclose ("") "") o output_width; val html_trans = [("class", color "red"), @@ -145,7 +145,7 @@ fun begin_index back (index_path, session) opt_readme = begin_document ("Index of " ^ session) ^ back_link back ^ - (case opt_readme of None => "" | Some p => para (href_path p "README" ^ " file")) ^ + (case opt_readme of None => "" | Some p => href_path p "README" ^ " file") ^ "\n
\n\n

Theories

\n"; val end_index = end_document; @@ -164,8 +164,9 @@ local - fun file ((p, p'), loadit) = - href_path p' ((if not loadit then enclose "(" ")" else I) (file_path p)); + fun file (opt_ref, path, loadit) = + (case opt_ref of None => I | Some p => href_path p) + ((if not loadit then enclose "(" ")" else I) (file_path path)); fun suffix_last _ [] = [] | suffix_last s lst = let val (xs, x) = split_last lst in xs @ [x ^ s] end;