Only drop final semicolon if doing compact printing