1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

\s includes \t

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kazu 2016-10-11 16:36:14 +00:00
parent 269977b918
commit ed7b88e285

View file

@ -405,7 +405,7 @@ def flunk(message = '')
end
def pretty(src, desc, result)
src = src.sub(/\A[\s\t]*\n/, '')
src = src.sub(/\A\s*\n/, '')
(/\n/ =~ src ? "\n#{adjust_indent(src)}" : src) + " #=> #{desc}"
end