proper printing of empty binding (again, cf. 93f6f24010c2);
--- a/src/Pure/General/binding.ML Tue Mar 13 11:23:39 2012 +0100
+++ b/src/Pure/General/binding.ML Tue Mar 13 12:51:52 2012 +0100
@@ -122,9 +122,11 @@
(* print *)
fun pretty (Binding {prefix, qualifier, name, pos, ...}) =
- Pretty.markup (Position.markup pos Isabelle_Markup.binding)
- [Pretty.str (Long_Name.implode (map #1 (prefix @ qualifier) @ [name]))]
- |> Pretty.quote;
+ if name = "" then Pretty.str "\"\""
+ else
+ Pretty.markup (Position.markup pos Isabelle_Markup.binding)
+ [Pretty.str (Long_Name.implode (map #1 (prefix @ qualifier) @ [name]))]
+ |> Pretty.quote;
val print = Pretty.str_of o pretty;