Add newlines after block-like elements

This method is in Ruby since 1.8.7.