tuned signature;
authorwenzelm
Thu, 01 Jun 2017 15:26:22 +0200
changeset 65993 75590c9a585f
parent 65992 50daca61efd6
child 65994 46123b9dadc8
tuned signature;
src/Pure/Thy/html.scala
--- a/src/Pure/Thy/html.scala	Thu Jun 01 15:19:50 2017 +0200
+++ b/src/Pure/Thy/html.scala	Thu Jun 01 15:26:22 2017 +0200
@@ -89,7 +89,7 @@
   }
 
   def id(s: String): Attribute = new Attribute("id", s)
-  def css_class(name: String): Attribute = new Attribute("class", name)
+  def class_(name: String): Attribute = new Attribute("class", name)
 
   def width(w: Int): Attribute = new Attribute("width", w.toString)
   def height(h: Int): Attribute = new Attribute("height", h.toString)
@@ -105,7 +105,7 @@
   {
     def apply(body: XML.Body): XML.Elem = XML.elem(name, body)
     def apply(att: Attribute, body: XML.Body): XML.Elem = att(apply(body))
-    def apply(c: String, body: XML.Body): XML.Elem = apply(css_class(c), body)
+    def apply(c: String, body: XML.Body): XML.Elem = apply(class_(c), body)
   }
 
   class Heading(name: String) extends Operator(name)
@@ -154,14 +154,14 @@
   /* messages */
 
   // background
-  val writeln_message: Attribute = css_class("writeln_message")
-  val warning_message: Attribute = css_class("warning_message")
-  val error_message: Attribute = css_class("error_message")
+  val writeln_message: Attribute = class_("writeln_message")
+  val warning_message: Attribute = class_("warning_message")
+  val error_message: Attribute = class_("error_message")
 
   // underline
-  val writeln: Attribute = css_class("writeln")
-  val warning: Attribute = css_class("warning")
-  val error: Attribute = css_class("error")
+  val writeln: Attribute = class_("writeln")
+  val warning: Attribute = class_("warning")
+  val error: Attribute = class_("error")
 
 
   /* tooltips */