clarified signature;
authorwenzelm
Thu, 26 Dec 2024 12:03:56 +0100
changeset 81650 e4152e64698f
parent 81649 904b2144e9c5
child 81651 36c5eabd62ec
clarified signature;
src/Pure/GUI/gui.scala
--- a/src/Pure/GUI/gui.scala	Tue Dec 24 16:57:28 2024 +0100
+++ b/src/Pure/GUI/gui.scala	Thu Dec 26 12:03:56 2024 +0100
@@ -69,14 +69,14 @@
 
   /* named items */
 
-  enum Style { case plain, html, symbol, symbol_decoded }
+  enum Style { case plain, html, symbol_encoded, symbol_decoded }
 
   def make_bold(str: String, style: Style = Style.plain): String =
     style match {
       case Style.plain => str
       case Style.html => "<b>" + HTML.output(str) + "</b>"
       case _ =>
-        val b = if (style == Style.symbol) Symbol.bold else Symbol.bold_decoded
+        val b = if (style == Style.symbol_encoded) Symbol.bold else Symbol.bold_decoded
         Symbol.iterator(str)
           .flatMap(s => if (Symbol.is_controllable(s)) List(b, s) else List(s))
           .mkString