src/Pure/Thy/export.scala
changeset 73693 3ab18af9b2b5
parent 73340 0ffcad1f6130
child 73785 b5fb99b985b4
--- a/src/Pure/Thy/export.scala	Sat May 15 12:25:24 2021 +0200
+++ b/src/Pure/Thy/export.scala	Sat May 15 12:33:08 2021 +0200
@@ -82,7 +82,8 @@
   def message(msg: String, theory_name: String, name: String): String =
     msg + " " + quote(name) + " for theory " + quote(theory_name)
 
-  def compound_name(a: String, b: String): String = a + ":" + b
+  def compound_name(a: String, b: String): String =
+    if (a.isEmpty) b else a + ":" + b
 
   def empty_entry(theory_name: String, name: String): Entry =
     Entry("", theory_name, name, false, Future.value(false, Bytes.empty), XML.Cache.none)