# HG changeset patch # User berghofe # Date 1105451267 -3600 # Node ID e1b3f0ea0fb6a67993fe738995258fa92606c76d # Parent d059da8434a55137d0f1057a43cc7ca451b0d121 Tuned. diff -r d059da8434a5 -r e1b3f0ea0fb6 src/Pure/Isar/isar_output.ML --- a/src/Pure/Isar/isar_output.ML Tue Jan 11 14:20:45 2005 +0100 +++ b/src/Pure/Isar/isar_output.ML Tue Jan 11 14:47:47 2005 +0100 @@ -200,16 +200,16 @@ T.is_kind T.Command tk andalso T.val_of tk mem !hidden_commands | is_hidden _ = false; -fun present_tokens lex (flag, toks) state' state = +fun present_tokens lex (flag, toks) state state' = Buffer.add (case flag of None => "" | Some b => Latex.flag_markup b) o - ((if !hide_commands andalso exists (is_hidden o fst) toks then[] + ((if !hide_commands andalso exists (is_hidden o fst) toks then [] else mapfilter (fn (tk, i) => if i > ! interest_level then None - else if !hide_commands andalso is_proof state' then - if not (is_proof state) andalso is_newline tk then Some tk + else if !hide_commands andalso is_proof state then + if not (is_proof state') andalso is_newline tk then Some tk else None else Some tk) toks) - |> map (apsnd (eval_antiquote lex state)) + |> map (apsnd (eval_antiquote lex state')) |> Latex.output_tokens |> Buffer.add);