Issue 6130: Text copied from console has lots of line breaks

http://code.google.com/p/fbug/issues/detail?id=6130
Issue 6130: test fixes