From 5f1224c39d1c249b4cb0ce749ab91c3a9a4781c6 Mon Sep 17 00:00:00 2001 From: herbelin Date: Fri, 26 Mar 2004 16:40:39 +0000 Subject: Bug
; ajout option raw_comment pas d'affichage de ; MAJ mot-cles git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@5577 85f007b7-540e-0410-9357-904b9bb8a0f7 --- tools/coqdoc/output.ml | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'tools') diff --git a/tools/coqdoc/output.ml b/tools/coqdoc/output.ml index 6fd62ae070..b6a4a063e2 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 "
\n" + let line_break () = printf "
\n" - let empty_line_of_code () = printf "\n
\n" + let empty_line_of_code () = printf "\n
\n" let char = function | '<' -> printf "<" @@ -440,14 +441,17 @@ module Html = struct let stop_item () = reach_item_level 0 - let start_coq () = printf "\n" + let start_coq () = if not !raw_comments then printf "\n" - let end_coq () = printf "\n" + let end_coq () = if not !raw_comments then printf "\n" let start_doc () = - printf "\n
\n" + if not !raw_comments then + printf "\n
\n" - let end_doc () = stop_item (); printf "\n
\n" + let end_doc () = + stop_item (); + if not !raw_comments then printf "\n
\n" let start_code () = end_doc (); start_coq () @@ -457,7 +461,7 @@ module Html = struct let end_inline_coq () = printf "" - let paragraph () = stop_item (); printf "\n

\n" + let paragraph () = stop_item (); printf "\n

\n" let section lev f = let lab = new_label () in @@ -492,8 +496,8 @@ module Html = struct printf "

%c %s

\n" idx c c cat; List.iter (fun (id,(text,link)) -> - printf "%s %s
\n" link id text) l; - printf "

" + printf "%s %s
\n" link id text) l; + printf "

" end let all_letters i = List.iter (letter_index false i.idx_name) i.idx_entries -- cgit v1.2.3