src/Tools/jEdit/src/document_model.scala
changeset 67252 c7f859868b7c
parent 67248 68177abb2988
child 67253 93b4333f33bb
equal deleted inserted replaced
67251:573077aa2826 67252:c7f859868b7c
   329   {
   329   {
   330     val snapshot = await_stable_snapshot()
   330     val snapshot = await_stable_snapshot()
   331 
   331 
   332     if (is_bibtex) Bibtex.present(snapshot)
   332     if (is_bibtex) Bibtex.present(snapshot)
   333     else {
   333     else {
       
   334       val (heading, body) =
       
   335         if (is_theory)
       
   336           ("Theory " + quote(node_name.theory_base_name), Present.theory_document(snapshot))
       
   337         else ("File " + quote(node_name.path.base_name), Present.text_document(snapshot))
       
   338 
   334       HTML.output_document(
   339       HTML.output_document(
   335         List(HTML.style(HTML.fonts_css(HTML.fonts_dir(fonts_dir)) + File.read(HTML.isabelle_css))),
   340         List(HTML.style(HTML.fonts_css(HTML.fonts_dir(fonts_dir)) + File.read(HTML.isabelle_css)),
   336           css = "",
   341           HTML.title(heading)),
   337           body =
   342           List(HTML.chapter(heading), HTML.source(body)))
   338             if (is_theory)
       
   339               List(HTML.chapter("Theory " + quote(node_name.theory_base_name)),
       
   340                 HTML.source(Present.theory_document(snapshot)))
       
   341             else
       
   342               List(HTML.chapter("File " + quote(node_name.node)),
       
   343                 HTML.source(Present.text_document(snapshot))))
       
   344     }
   343     }
   345   }
   344   }
   346 
   345 
   347 
   346 
   348   /* perspective */
   347   /* perspective */