src/Pure/Isar/method.ML
changeset 42813 6c841fa92fa2
parent 42616 92715b528e78
child 45228 aa3ad19c05d5
--- a/src/Pure/Isar/method.ML	Sun May 15 16:40:24 2011 +0200
+++ b/src/Pure/Isar/method.ML	Sun May 15 17:06:35 2011 +0200
@@ -336,8 +336,9 @@
   let
     val ctxt = Proof_Context.init_global thy;
     val meths = Methods.get thy;
-    fun prt_meth (name, (_, comment)) = Pretty.block
-      [Pretty.str (name ^ ":"), Pretty.brk 2, Pretty.str comment];
+    fun prt_meth (name, (_, "")) = Pretty.str name
+      | prt_meth (name, (_, comment)) =
+          Pretty.block [Pretty.str (name ^ ":"), Pretty.brk 2, Pretty.str comment];
   in
     [Pretty.big_list "methods:" (map prt_meth (Name_Space.extern_table ctxt meths))]
     |> Pretty.chunks |> Pretty.writeln