src/Pure/Thy/html.scala
changeset 51402 b05cd411d3d3
parent 51399 6ac3c29a300e
child 54379 4fac53028f87
--- a/src/Pure/Thy/html.scala	Tue Mar 12 18:44:48 2013 +0100
+++ b/src/Pure/Thy/html.scala	Tue Mar 12 20:03:04 2013 +0100
@@ -51,13 +51,19 @@
 
   /* common markup elements */
 
-  def session_entry(name: String): String =
+  private def session_entry(entry: (String, String)): String =
+  {
+    val (name, description) = entry
+    val descr =
+      if (description == "") Nil
+      else List(XML.elem("br"), XML.elem("pre", List(XML.Text(description))))
     XML.string_of_tree(
       XML.elem("li",
         List(XML.Elem(Markup("a", List(("href", name + "/index.html"))),
-          List(XML.Text(name)))))) + "\n"
+          List(XML.Text(name)))) ::: descr)) + "\n"
+  }
 
-  def chapter_index(chapter: String, sessions: List[String]): String =
+  def chapter_index(chapter: String, sessions: List[(String, String)]): String =
   {
     begin_document("Isabelle/" + chapter + " sessions") +
       (if (sessions.isEmpty) ""