# HG changeset patch # User Fabian Huch # Date 1732038432 -3600 # Node ID 447ad59877432f9d9b93a52570772ed75260d8a8 # Parent c227ad39be437c3aa41ebd2080f9421b96650537 try0: cleaned up output; diff -r c227ad39be43 -r 447ad5987743 src/HOL/Tools/try0.ML --- a/src/HOL/Tools/try0.ML Mon Nov 18 13:30:02 2024 +0100 +++ b/src/HOL/Tools/try0.ML Tue Nov 19 18:47:12 2024 +0100 @@ -48,8 +48,11 @@ datatype modifier = Use | Simp | Intro | Elim | Dest fun string_of_xthm (xref, args) = - (case xref of Facts.Fact literal => cartouche literal | _ => Facts.string_of_ref xref) ^ - implode (map (enclose "[" "]" o Pretty.unformatted_string_of o Token.pretty_src \<^context>) args) + (case xref of + Facts.Fact literal => literal |> Symbol_Pos.explode0 |> Symbol_Pos.implode |> cartouche + | _ => + Facts.string_of_ref xref) ^ implode + (map (enclose "[" "]" o Pretty.unformatted_string_of o Token.pretty_src \<^context>) args) fun add_attr_text tagged (tag, src) s = let