Binding.str_of;
pretty_name_atts: check Binding.is_empty, not result of Binding.str_of;
--- a/src/Pure/Isar/element.ML Tue Mar 03 15:09:08 2009 +0100
+++ b/src/Pure/Isar/element.ML Tue Mar 03 15:09:09 2009 +0100
@@ -125,11 +125,9 @@
map (fn y => Pretty.block [Pretty.str " ", Pretty.keyword sep, Pretty.brk 1, y]) ys;
fun pretty_name_atts ctxt (b, atts) sep =
- let val name = Binding.display b in
- if name = "" andalso null atts then []
- else [Pretty.block
- (Pretty.breaks (Pretty.str name :: Attrib.pretty_attribs ctxt atts @ [Pretty.str sep]))]
- end;
+ if Binding.is_empty b andalso null atts then []
+ else [Pretty.block (Pretty.breaks
+ (Pretty.str (Binding.str_of b) :: Attrib.pretty_attribs ctxt atts @ [Pretty.str sep]))];
(* pretty_stmt *)