src/Pure/Thy/latex.scala
changeset 67483 aae933ca6fbd
parent 67482 dce667537607
child 71164 a21a29de5f57
--- a/src/Pure/Thy/latex.scala	Sun Jan 21 13:40:28 2018 +0100
+++ b/src/Pure/Thy/latex.scala	Mon Jan 22 11:23:42 2018 +0100
@@ -137,7 +137,7 @@
         "<everyeof>",
         "<write>").mkString("^(?:", "|", ") (.*)$").r
 
-    val Bad_File = """^! LaTeX Error: File `(.*)' not found\.$""".r
+    val Bad_File = """^! LaTeX Error: (File `.*' not found\.)$""".r
 
     val error_ignore =
       Set(
@@ -165,8 +165,7 @@
           val pos = tex_file_position(file, line)
           val msg2 = error_suffix1(rest1) orElse error_suffix2(rest1) getOrElse ""
           filter(rest1, (Exn.cat_message(msg1, msg2), pos) :: result)
-        case Bad_File(file) :: rest =>
-          val msg = "File " + quote(file) + " not found"
+        case Bad_File(msg) :: rest =>
           filter(rest, (msg, Position.none) :: result)
         case _ :: rest => filter(rest, result)
         case Nil => result.reverse