summaryrefslogblamecommitdiff
path: root/src/compiler/scala/tools/nsc/NewLinePrintWriter.scala
blob: 79e05a4887d1105880552790aa54e50af5666cfe (plain) (tree)
1
2
3
4
5



                                
       









                                                         
/* NSC -- new Scala compiler
 * Copyright 2005-2008 LAMP/EPFL
 * @author Martin Odersky
 */
// $Id$

package scala.tools.nsc
import java.io.{Writer, PrintWriter}

class NewLinePrintWriter(out: Writer, autoFlush: Boolean)
extends PrintWriter(out, autoFlush) {
  def this(out: Writer) = this(out, false)
  override def println() { print("\n"); flush() }
}