src/Pure/Thy/document_build.scala
changeset 80480 972f7a4cdc0e
parent 80236 c6670f9575de
equal deleted inserted replaced
80479:762fcf8f9ced 80480:972f7a4cdc0e
   246         val selected = document_selection(name.theory)
   246         val selected = document_selection(name.theory)
   247 
   247 
   248         val body =
   248         val body =
   249           if (selected) {
   249           if (selected) {
   250             val entry = session_context(name.theory, Export.DOCUMENT_LATEX, permissive = true)
   250             val entry = session_context(name.theory, Export.DOCUMENT_LATEX, permissive = true)
   251             YXML.parse_body(entry.text)
   251             YXML.parse_body(entry.bytes)
   252           }
   252           }
   253           else {
   253           else {
   254             val text =
   254             val text =
   255               proper_string(session_context.theory_source(name.theory)) getOrElse
   255               proper_string(session_context.theory_source(name.theory)) getOrElse
   256                 File.read(name.path)
   256                 File.read(name.path)