clarified file positions;
authorwenzelm
Mon Dec 11 14:10:41 2017 +0100 (17 months ago)
changeset 67182bdc03e20fce3
parent 67181 0da2811afd87
child 67183 28227b13a2f1
clarified file positions;
src/Pure/Thy/latex.scala
     1.1 --- a/src/Pure/Thy/latex.scala	Mon Dec 11 14:10:12 2017 +0100
     1.2 +++ b/src/Pure/Thy/latex.scala	Mon Dec 11 14:10:41 2017 +0100
     1.3 @@ -79,7 +79,7 @@
     1.4        }
     1.5  
     1.6      def tex_position(line: Int): Position.T =
     1.7 -      Position.File(tex_file.implode) ::: Position.Line(line)
     1.8 +        Position.Line_File(line, tex_file.implode)
     1.9  
    1.10      def position(line: Int): Position.T =
    1.11        source_position(line) getOrElse tex_position(line)
    1.12 @@ -141,7 +141,7 @@
    1.13      {
    1.14        lines match {
    1.15          case File_Line_Error((file, line, msg1)) :: rest1 =>
    1.16 -          val pos = tex_file_position(file, line)
    1.17 +          val pos = tex_file_position((dir + file).canonical, line)
    1.18            rest1 match {
    1.19              case Line_Error((line2, msg2)) :: rest2 if line == line2 =>
    1.20                filter(rest2, (Exn.cat_message(msg1, msg2), pos) :: result)