src/Pure/Thy/latex.scala
changeset 73736 a8ff6e4ee661
parent 73474 4e12a6caefb3
child 73780 466fae6bf22e
equal deleted inserted replaced
73735:26cd26aaf108 73736:a8ff6e4ee661
    20   def latex_errors(dir: Path, root_name: String): List[String] =
    20   def latex_errors(dir: Path, root_name: String): List[String] =
    21   {
    21   {
    22     val root_log_path = dir + Path.explode(root_name).ext("log")
    22     val root_log_path = dir + Path.explode(root_name).ext("log")
    23     if (root_log_path.is_file) {
    23     if (root_log_path.is_file) {
    24       for { (msg, pos) <- filter_errors(dir, File.read(root_log_path)) }
    24       for { (msg, pos) <- filter_errors(dir, File.read(root_log_path)) }
    25       yield "Latex error" + Position.here(pos) + ":\n" + Library.prefix_lines("  ", msg)
    25       yield "Latex error" + Position.here(pos) + ":\n" + Library.indent_lines(2, msg)
    26     }
    26     }
    27     else Nil
    27     else Nil
    28   }
    28   }
    29 
    29 
    30 
    30