hybridgroup / kidsruby

KidsRuby is a Ruby programming environment meant for kids to learn and have fun!
http://kidsruby.com
Other
333 stars 104 forks source link

Output viewer doesn't honor whitespace #29

Closed dougbradbury closed 12 years ago

dougbradbury commented 12 years ago

One of the lesson's in Chris Pine's tutorial teaches the string methods center, ljust, and rjust. Whitespace get collapsed though in output viewer so the student can't tell if their code is working.

line_width = 50 puts( 'Sat in her cupboard'.center(line_width)) Pine. Learn to Program, 2e (Doug Bradbury) (Kindle Locations 637-638). The Pragmatic Bookshelf (309187).

phlipper commented 12 years ago

Hi Doug,

Thanks for bringing this to our attention. We'll take a look and get it figured out.

/cc @deadprogrammer, @ldenman