tuned;
authorwenzelm
Tue, 25 May 2021 23:12:46 +0200
changeset 74039 e4d50a660140
parent 74038 4606a9cadd83
child 74040 04d39959d1e6
tuned;
src/Pure/Thy/latex.scala
--- a/src/Pure/Thy/latex.scala	Tue May 25 23:04:29 2021 +0200
+++ b/src/Pure/Thy/latex.scala	Tue May 25 23:12:46 2021 +0200
@@ -30,7 +30,7 @@
     var line = 1
     var result = List.empty[String]
 
-    def output(body: XML.Body): Unit =
+    def traverse(body: XML.Body): Unit =
     {
       body.foreach {
         case XML.Wrapped_Elem(_, _, _) =>
@@ -40,14 +40,14 @@
               val s = position(Value.Int(line), Value.Int(l))
               if (positions.head != s) positions ::= s
             }
-            output(body)
+            traverse(body)
           }
         case XML.Text(s) =>
           line += s.count(_ == '\n')
           result ::= s
       }
     }
-    output(latex_text)
+    traverse(latex_text)
 
     result.reverse.mkString + cat_lines(positions.reverse)
   }