summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/NewLinePrintWriter.scala
blob: db185d0c9f547011de2f1150db771e0d11ab2013 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* NSC -- new Scala compiler
 * Copyright 2005-2008 LAMP/EPFL
 * @author Martin Odersky
 */
// $Id: Interpreter.scala 14056 2008-02-18 22:42:13Z spoon $

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() }
}