Tuned.
authorberghofe
Tue, 11 Jan 2005 14:47:47 +0100
changeset 15437 e1b3f0ea0fb6
parent 15436 d059da8434a5
child 15438 dfc7d2a824d6
Tuned.
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);