Skip to content

Commit

Permalink
Merge pull request #430 from SethTisue/linesiterator-not-lines
Browse files Browse the repository at this point in the history
work around scala/bug#11125
  • Loading branch information
rickynils authored Sep 25, 2018
2 parents e7714eb + ebccbb8 commit 52a49ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/org/scalacheck/util/Pretty.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ object Pretty {
else s.substring(0, length) / break(lead+s.substring(length), lead, length)

def format(s: String, lead: String, trail: String, width: Int) =
s.lines.map(l => break(lead+l+trail, " ", width)).mkString("\n")
// was just `s.lines....`, but on JDK 11 we hit scala/bug#11125
Predef.augmentString(s).lines.map(l => break(lead+l+trail, " ", width)).mkString("\n")

private def toStrOrNull(s: Any) = if (s == null) "null" else s.toString

Expand Down

0 comments on commit 52a49ae

Please sign in to comment.