proper writeln of begin_state;
authorwenzelm
Wed, 18 Aug 1999 20:40:28 +0200
changeset 7265 32a867ed9454
parent 7264 d55cd903c93d
child 7266 28d95a7a265a
proper writeln of begin_state;
src/Pure/goals.ML
--- a/src/Pure/goals.ML	Wed Aug 18 20:39:41 1999 +0200
+++ b/src/Pure/goals.ML	Wed Aug 18 20:40:28 1999 +0200
@@ -319,9 +319,12 @@
 val current_goals_markers = ref ("", "", "");
 
 fun print_current_goals_default n max th =
-  let val ref (begin_state, end_state, begin_goal) = current_goals_markers;
-      val ngoals = nprems_of th in
-    writeln (begin_state ^ "Level " ^ string_of_int n ^
+  let
+    val ref (begin_state, end_state, begin_goal) = current_goals_markers;
+    val ngoals = nprems_of th;
+  in
+    if begin_state = "" then () else writeln begin_state;
+    writeln ("Level " ^ string_of_int n ^
       (if ngoals > 0 then " (" ^ string_of_int ngoals ^ " subgoal" ^
         (if ngoals <> 1 then "s" else "") ^ ")"
       else ""));