equal
deleted
inserted
replaced
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 |