Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* lib/prettyprint.rb: update document. [ruby-core:36776]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit 642458fd77476ac3a364a914ab02097014c8f6b8 1 parent 048202f
@akr akr authored
Showing with 12 additions and 1 deletion.
  1. +4 −0 ChangeLog
  2. +8 −1 lib/prettyprint.rb
View
4 ChangeLog
@@ -1,3 +1,7 @@
+Wed Aug 3 00:11:08 2011 Tanaka Akira <akr@fsij.org>
+
+ * lib/prettyprint.rb: update document. [ruby-core:36776]
+
Tue Aug 2 22:04:46 2011 NARUSE, Yui <naruse@ruby-lang.org>
* gc.c (init_heap): allocate sigaltstack after heaps are allocated.
View
9 lib/prettyprint.rb
@@ -157,7 +157,14 @@ def text(obj, width=obj.length)
end
end
- # This is similar to #breakable, but is less-likely to insert a newline.
+ # This is similar to #breakable except
+ # the decision to break or not is determined individually.
+ #
+ # Two #fill_breakable under a group may cause 4 results:
+ # (break,break), (break,non-break), (non-break,break), (non-break,non-break).
+ # This is different to #breakable because two #breakable under a group
+ # may cause 2 results:
+ # (break,break), (non-break,non-break).
#
# The text sep+ is inserted if a line is not broken at this point.
#
Please sign in to comment.
Something went wrong with that request. Please try again.