mirror of https://github.com/sbt/sbt.git
Merge pull request #6145 from eatkins/print-empty-newlines
Print empty newlines with progress
This commit is contained in:
commit
8a93dc96f7
|
|
@ -111,7 +111,10 @@ private[sbt] final class ProgressState(
|
||||||
if (appendNewline) toWrite ++= lineSeparatorBytes
|
if (appendNewline) toWrite ++= lineSeparatorBytes
|
||||||
}
|
}
|
||||||
parts.dropRight(1).foreach(appendLine(_, true))
|
parts.dropRight(1).foreach(appendLine(_, true))
|
||||||
parts.lastOption.foreach(appendLine(_, bytes.endsWith(lineSeparatorBytes)))
|
parts.lastOption match {
|
||||||
|
case Some(l) => appendLine(l, bytes.endsWith(lineSeparatorBytes))
|
||||||
|
case None => toWrite ++= lineSeparatorBytes
|
||||||
|
}
|
||||||
} else toWrite ++= bytes
|
} else toWrite ++= bytes
|
||||||
toWrite ++= clearScreenBytes
|
toWrite ++= clearScreenBytes
|
||||||
if (endsWithNewLine) {
|
if (endsWithNewLine) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue