diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-09-04 12:16:44 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-09-04 12:16:44 -0700 |
commit | d34e8abaacf7a51e05630557681e8267d7050e3a (patch) | |
tree | a96e186e8ee3c6be67451269f1b94ab81b6d8acc /src/library | |
parent | 3041fc5fe3b36e618cd0a4b2d909c219050a5c3f (diff) | |
parent | bcf1d9a5f5c1d0319b51cd3dcce9ecebdeb12feb (diff) | |
download | scala-d34e8abaacf7a51e05630557681e8267d7050e3a.tar.gz scala-d34e8abaacf7a51e05630557681e8267d7050e3a.tar.bz2 scala-d34e8abaacf7a51e05630557681e8267d7050e3a.zip |
Merge pull request #1219 from odersky/topic/worksheet-instrumenter
More worksheet nstrumentation changes
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/runtime/WorksheetSupport.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/runtime/WorksheetSupport.scala b/src/library/scala/runtime/WorksheetSupport.scala index 6f2a4d382d..a003bba034 100644 --- a/src/library/scala/runtime/WorksheetSupport.scala +++ b/src/library/scala/runtime/WorksheetSupport.scala @@ -40,9 +40,9 @@ object WorksheetSupport { write((currentOffset+" ").getBytes) } out.write(c) - col = + col = if (c == '\n') -1 - else if (c == '\t') (col / tabInc) * tabInc + tabInc + else if (c == '\t') (col / tabInc) * tabInc + tabInc else col + 1 if (col >= width) writeOne('\n') } @@ -86,7 +86,7 @@ object WorksheetSupport { def $stop() = throw new StopException - def $show(x: Any): String = stringOf(x, scala.Int.MaxValue) + def $show(x: Any): String = stringOf(x) } class StopException extends Exception |