clarified operations, following pretty_thm_name;
authorwenzelm
Mon, 10 Jun 2024 12:44:49 +0200
changeset 80326 53f12ab896e6
parent 80325 dca37c6479e3
child 80327 e4e643705d90
clarified operations, following pretty_thm_name;
src/Pure/Isar/proof_context.ML
--- a/src/Pure/Isar/proof_context.ML	Mon Jun 10 12:07:54 2024 +0200
+++ b/src/Pure/Isar/proof_context.ML	Mon Jun 10 12:44:49 2024 +0200
@@ -442,8 +442,7 @@
 
 fun pretty_term_abbrev ctxt = Syntax.pretty_term (set_mode mode_abbrev ctxt);
 
-fun pretty_fact_name ctxt a =
-  Pretty.block [Pretty.marks_str (markup_extern_fact ctxt a), Pretty.str ":"];
+fun pretty_fact_name ctxt a = Pretty.marks_str (markup_extern_fact ctxt a);
 
 fun pretty_fact ctxt =
   let
@@ -452,8 +451,10 @@
   in
     fn ("", [th]) => pretty_thm th
      | ("", ths) => Pretty.blk (0, Pretty.fbreaks (pretty_thms ths))
-     | (a, [th]) => Pretty.block [pretty_fact_name ctxt a, Pretty.brk 1, pretty_thm th]
-     | (a, ths) => Pretty.block (Pretty.fbreaks (pretty_fact_name ctxt a :: pretty_thms ths))
+     | (a, [th]) =>
+        Pretty.block [pretty_fact_name ctxt a, Pretty.str ":", Pretty.brk 1, pretty_thm th]
+     | (a, ths) =>
+        Pretty.block (Pretty.fbreaks (pretty_fact_name ctxt a :: Pretty.str ":" :: pretty_thms ths))
   end;