Add in a fragment found on stackoverflow that fixes up closing bracket
indentation.