diff options
author | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2004-03-26 16:40:39 +0000 |
---|---|---|
committer | herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2004-03-26 16:40:39 +0000 |
commit | 5f1224c39d1c249b4cb0ce749ab91c3a9a4781c6 (patch) | |
tree | c6bec667f8b4225c51b513c2c13b7c61d6106793 /tools/coqdoc/output.ml | |
parent | b9d23273d6ccbdf724e36f2ddccddaad9f0f5abd (diff) |
Bug <BR>; ajout option raw_comment pas d'affichage de <table>; MAJ mot-cles
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@5577 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tools/coqdoc/output.ml')
-rw-r--r-- | tools/coqdoc/output.ml | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/tools/coqdoc/output.ml b/tools/coqdoc/output.ml index 6fd62ae07..b6a4a063e 100644 --- a/tools/coqdoc/output.ml +++ b/tools/coqdoc/output.ml @@ -59,6 +59,7 @@ let page_title = ref "" let title = ref "" let externals = ref true let coqlib = ref "http://coq.inria.fr/library/" +let raw_comments = ref false let charset = ref "" let inputenc = ref "" @@ -87,10 +88,10 @@ let is_keyword = [ "Add"; "AddPath"; "Axiom"; "Chapter"; "CoFixpoint"; "CoInductive"; "Defined"; "Definition"; "End"; "Export"; "Fact"; "Fix"; "Fixpoint"; "Global"; "Grammar"; "Hint"; - "Hints"; "Hypothesis"; "Hypotheses"; - "Immediate"; "Implicits"; "Import"; "Inductive"; - "Infix"; "Lemma"; "Load"; "Local"; - "Match"; "Module"; "Module Type"; "Declare Module"; + "Hypothesis"; "Hypotheses"; + "Immediate"; "Implicit"; "Import"; "Inductive"; + "Infix"; "Lemma"; "Let"; "Load"; "Local"; "Ltac"; + "Module"; "Module Type"; "Declare Module"; "Mutual"; "Parameter"; "Parameters"; "Print"; "Proof"; "Qed"; "Record"; "Recursive"; "Remark"; "Require"; "Save"; "Scheme"; "Section"; "Show"; "Syntactic"; "Syntax"; "Tactic"; "Theorem"; @@ -347,9 +348,9 @@ module Html = struct let indentation n = for i = 1 to n do printf " " done - let line_break () = printf "<br/>\n" + let line_break () = printf "<br>\n" - let empty_line_of_code () = printf "\n<br/>\n" + let empty_line_of_code () = printf "\n<br>\n" let char = function | '<' -> printf "<" @@ -440,14 +441,17 @@ module Html = struct let stop_item () = reach_item_level 0 - let start_coq () = printf "<code>\n" + let start_coq () = if not !raw_comments then printf "<code>\n" - let end_coq () = printf "</code>\n" + let end_coq () = if not !raw_comments then printf "</code>\n" let start_doc () = - printf "\n<table width=\"100%%\"><tr class=\"doc\"><td>\n" + if not !raw_comments then + printf "\n<table width=\"100%%\"><tr class=\"doc\"><td>\n" - let end_doc () = stop_item (); printf "\n</td></tr></table>\n" + let end_doc () = + stop_item (); + if not !raw_comments then printf "\n</td></tr></table>\n" let start_code () = end_doc (); start_coq () @@ -457,7 +461,7 @@ module Html = struct let end_inline_coq () = printf "</code>" - let paragraph () = stop_item (); printf "\n<br/><br/>\n" + let paragraph () = stop_item (); printf "\n<br><br>\n" let section lev f = let lab = new_label () in @@ -492,8 +496,8 @@ module Html = struct printf "<a name=\"%s_%c\"></a><h2>%c %s</h2>\n" idx c c cat; List.iter (fun (id,(text,link)) -> - printf "<a href=\"%s\">%s</a> %s<br/>\n" link id text) l; - printf "<br/><br/>" + printf "<a href=\"%s\">%s</a> %s<br>\n" link id text) l; + printf "<br><br>" end let all_letters i = List.iter (letter_index false i.idx_name) i.idx_entries |