Better rendering of methods and docs. Strip all the newlines.