diff options
author | Paul Phillips <paulp@improving.org> | 2009-04-30 20:28:10 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-04-30 20:28:10 +0000 |
commit | e4b32dab97e7487198bb5dd2be38668f77584504 (patch) | |
tree | 734a5068f0b06062160dce2f9f685b309a6c2259 | |
parent | c045524ead5b916ffec9cc7d942ee775c50875ec (diff) | |
download | scala-e4b32dab97e7487198bb5dd2be38668f77584504.tar.gz scala-e4b32dab97e7487198bb5dd2be38668f77584504.tar.bz2 scala-e4b32dab97e7487198bb5dd2be38668f77584504.zip |
Fix for #901.
-rw-r--r-- | src/library/scala/xml/PrettyPrinter.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/xml/PrettyPrinter.scala b/src/library/scala/xml/PrettyPrinter.scala index 56e3a2db1b..2415635132 100644 --- a/src/library/scala/xml/PrettyPrinter.scala +++ b/src/library/scala/xml/PrettyPrinter.scala @@ -52,7 +52,7 @@ class PrettyPrinter( width:Int, step:Int ) { */ protected def cut(s: String, ind: Int): List[Item] = { val tmp = width - cur - if (s.length < tmp) + if (s.length <= tmp) return List(Box(ind, s)) val sb = new StringBuilder() var i = s.indexOf(' ') |