# HG changeset patch # User wenzelm # Date 921674474 -3600 # Node ID c87f3769203a1cc86a9afe60e37f19a6b809dc7f # Parent 4bea69e827d039345d1402de71a5a0a2f157922f tuned; diff -r 4bea69e827d0 -r c87f3769203a src/Pure/Thy/html.ML --- a/src/Pure/Thy/html.ML Wed Mar 17 13:40:21 1999 +0100 +++ b/src/Pure/Thy/html.ML Wed Mar 17 13:41:14 1999 +0100 @@ -15,9 +15,11 @@ val keyword: string -> text val file_name: string -> text val file_path: Path.T -> text - val para: text -> text val href_name: string -> text -> text val href_path: Path.T -> text -> text + val href_opt_name: string option -> text -> text + val href_opt_path: Path.T option -> text -> text + val para: text -> text val preform: text -> text val verbatim: string -> text val begin_document: string -> text @@ -113,9 +115,16 @@ (* misc *) -fun para txt = "\n
\n" ^ txt ^ "\n
\n"; fun href_name s txt = "" ^ txt ^ ""; fun href_path path txt = href_name (Path.pack path) txt; + +fun href_opt_name None txt = txt + | href_opt_name (Some s) txt = href_name s txt; + +fun href_opt_path None txt = txt + | href_opt_path (Some p) txt = href_path p txt; + +fun para txt = "\n\n" ^ txt ^ "\n
\n"; fun preform txt = "" ^ txt ^ ""; val verbatim = preform o output; @@ -137,14 +146,14 @@ "