src/Pure/Tools/doc.scala
changeset 56831 e3ccf0809d51
parent 56784 776890e0cf71
child 61157 13f4056c42d7
--- a/src/Pure/Tools/doc.scala	Fri May 02 19:51:40 2014 +0200
+++ b/src/Pure/Tools/doc.scala	Fri May 02 20:01:45 2014 +0200
@@ -77,7 +77,7 @@
 
   def view(path: Path)
   {
-    if (path.is_file) System.out.println(Library.trim_line(File.read(path)))
+    if (path.is_file) Console.println(Library.trim_line(File.read(path)))
     else {
       val pdf = path.ext("pdf")
       if (pdf.is_file) Isabelle_System.pdf_viewer(pdf)
@@ -92,7 +92,7 @@
   {
     Command_Line.tool0 {
       val entries = contents()
-      if (args.isEmpty) System.out.println(cat_lines(contents_lines().map(_._2)))
+      if (args.isEmpty) Console.println(cat_lines(contents_lines().map(_._2)))
       else {
         args.foreach(arg =>
           entries.collectFirst { case Doc(name, _, path) if arg == name => path } match {