Fix extra whitespace problem with hanging closing brackets
Respect curly brackets in ruby